docs.unity.cn
    Show / Hide Table of Contents

    Method GetRefRWOptional

    GetRefRWOptional(Entity)

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

    Declaration
    public RefRW<T> GetRefRWOptional(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The referenced entity

    Returns
    Type Description
    RefRW<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 Wednesday, June 21, 2023