Interface IWillRender | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023