docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetComponentObject

    TryGetComponentObject<T>(Entity, out T)

    Attempts to get the managed UnityEngine.Component object from an entity.

    Declaration
    [ExcludeFromBurstCompatTesting("Returns managed object")]
    public bool TryGetComponentObject<T>(Entity entity, out T result)
    Parameters
    Type Name Description
    Entity entity
    T result
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2025 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)