the air and knows the answer please, while following many online Unity tutorials, often as the person creates a new script and has added it as a component to a game object, they’ve created fields for themselves to enter whatever sort of value by virtue of how they’ve written the script. What’s happening for me is that I could accurately copy such a script and have saved it in Unity, yet I don’t receive the new text box within the space of the component. I'm using 2018.1.1.1f1 as this happens. Have any of you had something like that happen?
the textbox is just mapped to a public variable in the script so if you add a public string to the script in code then it will show a textbox in the editor. Also make sure that your script is saved or it won't show up.
Обсуждают сегодня