Last active
June 15, 2017 12:55
-
-
Save Hexodus/0cbc69eab7b24224da67dffad4852502 to your computer and use it in GitHub Desktop.
Find inactive Game Objects in Unity 3D. The right method to go is to search over the parents transform for a script on the child like this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var theParentGO = GameObject.Find("ParentName"); | |
theParentGO.transform.GetComponentInChildren<ScriptOnTheChild>(true).gameObject; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement