文档

Unity Engine

Unity Engine

Prefab

Marks the entity as a prefab, which implicitly disables the entity.
阅读时间1 分钟最后更新于 19 天前

Definition

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.