Closed adamgryu closed 1 year ago
If your scene has multiple cameras, then FindObjectOfType is not deterministic. Camera.main will reliably get the main camera.
I also added a RuntimeInitializeOnLoadMethod method for compatibility with EnterPlayMode settings.
Good point! And if some specific camera without MainCamera tag should be faced, it could be set as FacedObject 🤔 Thanks for the fix, I will mention it in the Changelog 🙏🏻
If your scene has multiple cameras, then FindObjectOfType is not deterministic. Camera.main will reliably get the main camera.
I also added a RuntimeInitializeOnLoadMethod method for compatibility with EnterPlayMode settings.