docs.unity3d.com
    Show / Hide Table of Contents

    Struct Prefab

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

    Namespace: Unity.Entities
    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.

    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, March 22, 2023
    Terms of use