Oct 8, 2013

[Unity3d] How to find camera

If  you can check the tag of the game object, it is as simple as below. 

GameObject.FindWithTag("MainCamera").camera 


No comments:

Post a Comment