Problem with tutorial - `GetActive' of type `UnityEngine.GameObject' could be found
Options
Why am I having this problem?
Type `UnityEngine.GameObject' does not contain a definition for `GetActive' and no extension method `GetActive' of type `UnityEngine.GameObject' could be found. Are you missing an assembly reference?
I was following the tutorial and i am stuck at the PlayerManager script section
https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/pun-basics-tutorial/player-prefab#camera_setup
I can't add the script as a component because of the error. Help please?
Type `UnityEngine.GameObject' does not contain a definition for `GetActive' and no extension method `GetActive' of type `UnityEngine.GameObject' could be found. Are you missing an assembly reference?
I was following the tutorial and i am stuck at the PlayerManager script section
https://doc.photonengine.com/en-us/pun/v2/demos-and-tutorials/pun-basics-tutorial/player-prefab#camera_setup
I can't add the script as a component because of the error. Help please?
0
Answers
-
The Unity GameObject class does not appear to have a "GetActive" method.
https://docs.unity3d.com/ScriptReference/GameObject.html
Try using the ActiveSelf property.1