docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Prefab

    Marks the entity as a prefab, which implicitly disables the entity.

    Implements
    IComponentData
    IQueryTypeParameter
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public struct Prefab : IComponentData, IQueryTypeParameter
    Remarks

    By default, an EntityQuery ignores all entities that have a Prefab component. You can override this default behavior by setting the EntityQueryOptions.IncludePrefab flag of the EntityQueryDesc object used to create the query.

    Implements

    IComponentData
    IQueryTypeParameter
    In This Article
    • Implements
    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)