Quantcast
Channel: Questions in topic: "extending"
Viewing all articles
Browse latest Browse all 16

Adding button and/or drop down list to a custom editor

$
0
0
Hi guys, I am currently learning about Extending the Editor in Unity and I'm curios as to how I might be able to create a drop down list that would allow me to add let's say a string to a certain variable from another script. Then upon pressing Ok, the string is added. Note that I work best with Javascript, but I was only able to extend the editor with C#. Example: There is the Example.js script with the following variable: var Text : String = ""; Through the ExtendedWindow.cs script I would like to add the text in the text box(already managed this part) and select to which variable and/or script it should be added to. Is this even possible? I do not want you to write the code for me, just to explain it for a better understanding. I'm capable of figuring it out if I get the logic in it (just couldn't find anything like this anywhere). Regards, Eugen

Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>