Struct Prefab | Entities | 0.3.0-preview.4
docs.unity.cn
    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
    Remarks

    By default, an EntityQuery ignores all entities that have a Prefab component. You can override this default behavior by setting the IncludePrefab flag of the EntityQueryDesc object used to create the query. When using the EntityQueryBuilder class in a ComponentSystem, set this flag by calling the With(EntityQueryOptions) function.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX