- Home /
Changes in Inspector have no effect
I have a scene based on a prefab. I want to alter some of the objects - change the hierarchy, for example. Unity tells me that this will disconnect me from the prefab, which is fine. I then proceed to do my changes, including certain properties in the Inspector, but when I run the code on a device (iOS in my case), the old values are still there (verified this with Debug.Log). This is driving me absolutely crazy... Any ideas?
EDIT:
After a lot of playing around, I realized that changing the prefab itself also has no effect. This may be due to nested prefabs (the relevant prefab where I have to make my changes is nested). In any case, nothing besides the Apply to Prefab option seems to have any effect, which keeps maxing out on the strangeness scale...
Are you expecting to see the changes in all of the prefab objects, or just the instances you've changed?
Just the instance I changed, of course. Otherwise I'd change the prefab itself.
Do you have a script somewhere that also manages those values?
Strictly speaking, no - I do have scripts that change some values of those objects, but not the same ones I set in Inspector (the point of the exercise was to not have to set them at runtime in a script!).
Do the changes you made revert to the old values when you exit play mode, or are they still present in the inspector?
Your answer
Follow this Question
Related Questions
Inspector Popup format to look like tag or layer popup 1 Answer
Make popup window in inspector if deleting GameObject 0 Answers
How to update objects material on Editor 1 Answer
ReImport in c# of GameObjects only for Scene Objects, not assets? 1 Answer
Drawing a custom variable in the inspector y position bugs selection 0 Answers