- Home /
Question by
goten000023 · Jan 31, 2015 at 06:14 PM ·
c#variableprefabscomponents
can you access a script in a prefab and change its value
after a game starts is there a way to change a prefab's variable's value in a script and then set it back ounce the game is stopped
it has to be done by script
Comment
Answer by Z2City · Jan 31, 2015 at 06:16 PM
After the game stops, the variable value should reset itself.
As for changing the prefab's variable during the game, you can change it in the Inspector.
its for changing values on my enemy at certain points so it has to be done by script
Your answer
Follow this Question
Related Questions
GetComponent, What is it ? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers