docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetTransformRef

    GetTransformRef(Entity, bool)

    Gets the TransformRef of an entity.

    Declaration
    [GenerateTestsForBurstCompatibility]
    public TransformRef GetTransformRef(Entity entity, bool isReadOnly)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    bool isReadOnly

    True for read-only access, or false for read/write access.

    Returns
    Type Description
    TransformRef

    The TransformRef to the entity.

    Remarks

    Using this method registers a read-only or read/write dependency for the system on TransformRef, based on the value passed to isReadOnly.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)