Component that determines whether an object should be rendered.
Optional
Reference to the GameObject this component is attached to.
Whether the object should be rendered.
Optional lifecycle hook called when the component is added to a GameObject.
Component that determines whether an object should be rendered.