Why I can not update the prefab value
I use instantiate to create a prefab object and give it a public movespeed, but when the script running, it can not be changed by the inspector. For example, in my script , the movespeed is 3f, and I change it by the inspector to 20f. Then I use Debug.Log to check the result. The console shows that the last frame is 3f, and the next frame is 20f, then it will go back to 3f, then is 20f, and then it just keeps looping...But I change the normal GameObject that does not have this problem... So what should I do to fix it?
Your answer
Follow this Question
Related Questions
UV Mapping problem. 0 Answers
My students character will not collide with anything? 0 Answers
In what situation Component.gameObject method throws NullReferenceException? 2 Answers
Errors in building to APK 2 Answers
File.WriteAllBytes problem 0 Answers