文档

Unity Engine

Unity Engine

ICleanupComponentData

An interface for a component that must be removed individually after its entity is destroyed.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Interface
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public interface ICleanupComponentData : IComponentData, IQueryTypeParameter

Remarks

Cleanup components should only be added to individual entities at runtime. They will not be serialized during the baking process, will not be copied to entity instances during instantiation, and are not included when entities are copied between Worlds. See Cleanup Components for additional information.