- Home /
How to disappear an prefab
Hallo, For some reason i can disappear a prefab(this one is a tree) but i can't disappear a prefab(this one is my main character) from the map. Here is my code and my inspector
Answer by unity_G2yrNlWYdpJKuw · Sep 30, 2017 at 11:59 AM
You need to add more info about your question. Did you use the exact same script on the tree object? The problem is when you start your game the playercharacter will be automatically visible since you set it to Object.SetActive(true);
void Update only works once the playercharacter has been updated, so it will only turn invisible when you do something with your playercharacter (update).
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Can someone help me with GUI script what I have? 1 Answer
How to create a secure package? 0 Answers
UIButton highlighted color not working 0 Answers