- Home /
Will Unity Check activeSelf in Method SetActive()
When we use gameObject.SetActive(true),will Unity check if this gameobject.activeSelf is true,and avoid the waste of performance.
Comment
Answer by meat5000 · Nov 18, 2014 at 11:30 AM
SetActive is a void function. It returns nothing. So no, 'true on complete' or anything. You should use activeSelf or activeInHierarchy to check for status.
Its not really worth worrying about its performance.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Multifiring functions c# 0 Answers
Check if input field is something based on if a text is something 1 Answer