docs.unity.cn
    Show / Hide Table of Contents

    Method GetRefROOptional

    GetRefROOptional(Entity)

    Gets a safe reference to the component data and a default RefRO (RefRO.IsValid == false).

    Declaration
    public RefRO<T> GetRefROOptional(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The referenced entity

    Returns
    Type Description
    RefRO<T>

    Returns a safe reference to the component data and a default RefRW.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023