- Home /
i want to change only one child GameObject's layer in somewhere middle of a GameObject tree. its not work..
as the question a asked . i want to change only one child GameObject's layer in somewhere middle of a GameObject tree. so that i can make only one object invisible. i did that ,but i still can see the object that i'm making it invisible.
Comment
It should't pose any problems. $$anonymous$$aybe try it with a test object and a short test script to see if maybe other parts of your script(s) change the layers. Also use Debug.Log to print the layer of the object to console after you changed it.