Unity: Assigning String value in inspector
- by Marc Pilgaard
I got an issue with Unity I can't seem to comprehend, and it is possibly very simple:
I am trying to write a simple piece of code in JavaScript where a button toggles the activation of a shield, by dragging a prefab with Resources.load("ActivateShieldPreFab") and destroying it again (Haven't implemented that yet).
I wish to assign this button…