- Home /
Question by
tmotspace · Nov 07, 2016 at 11:52 AM ·
uigameobjectprefab
SetActive modifies Prefab
Hi,
For some reason i'm calling "someGameObject.SetActive(false);" on button click and it modifies the game object in the prefab folder but not in the game scene. I have no idea why this is happening. Anyone know why? Thanks!
Comment
Answer by Dwin · Nov 07, 2016 at 12:42 PM
Hi,
Your 'someGameObject' probably refers to a prefab in your Assets folder and not to the instance of this object in your scene.
Can you check that ?
Your answer
Follow this Question
Related Questions
Change GameObject According to UI selection 2 Answers
Disable GameObject through Prefab? 2 Answers
Reset an GO to its original state (start app state) 2 Answers
Prefab not showing preview 0 Answers