Hi,
I have multiple cameras in my scene and I switch between then by enabling and disabling them (enabled = true;)
This works fine but I was concerned that I was missing something and have searched around for an active property such as Camera.active but don’t seem to find anything therefore I am assuming my current method is correct?
thank you
Yes, enabled=false/true is fine, which is what components use. You can use .active for gameObjects, like camera.gameObject.active = false, which will deactivate the entire gameObject and all components. Inactive gameObjects are not found by things like GameObject.Find(), so whether to disable components or gameObjects depends on what you’re doing exactly.
–Eric
Thank you for the reply Eric. Its always worth checking to make sure your doing the right thing.
thanks again