Interface IWillRender
Implementors can expose visibility callbacks to UI components when they are added to the same GameObject
Namespace: UnityEditor.Experimental.EditorVR.Modules
Syntax
public interface IWillRender
Properties
rectTransform
The RectTransform that represents this object
Declaration
RectTransform rectTransform { get; }
Property Value
Type | Description |
---|---|
RectTransform |
removeSelf
An action supplied to implementors which allows them to remove themselves from the visible list in case they are pooled
Declaration
Action<IWillRender> removeSelf { set; }
Property Value
Type | Description |
---|---|
Action<IWillRender> |
Methods
OnBecameInvisible()
Called when the object becomes invisible
Declaration
void OnBecameInvisible()
OnBecameVisible()
Called when the object becomes visible
Declaration
void OnBecameVisible()