docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property HasUnityObjectRefs

    HasUnityObjectRefs

    Returns whether there are any UnityObjectRefs fields in this component.

    Declaration
    public bool HasUnityObjectRefs { get; }
    Property Value
    Type Description
    bool
    Remarks

    For struct IComponentData a value of true means that there are UnityObjectRefs fields in this component. For class based IComponentData, a value of true means that there might be UnityObjectRefs fields in this component. This is because polymorphic UnityObjectRef<T> members can't be proven statically. A value of false means there are no UnityObjectRefs fields in this component.

    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)