docs.unity.cn
    Show / Hide Table of Contents

    Method GetRefRO

    GetRefRO(Entity)

    Gets a safe reference to the component data.

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

    The referenced entity

    Returns
    Type Description
    RefRO<T>

    Returns a safe reference to the component data. Throws an exception if the component doesn't exist.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023