Class PostLoadCommandBuffer
Component that contains an EntityCommandBuffer, which is used to execute commands after a scene is loaded.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
[Obsolete("PostLoadCommandBuffer is deprecated. Build the per-instance data on a regular entity in the main world, then pass it via SceneSystem.LoadParameters.ImportEntity (or set RequestSceneLoaded.ImportEntity on the scene or section meta entity). The streaming system copies the referenced entity into the per-section streaming world for ProcessAfterLoadGroup systems to query.")]
public class PostLoadCommandBuffer : IComponentData, IQueryTypeParameter
Remarks
This component includes a reference counter. When the reference counter is equal to 0, the CommandBuffer is disposed of.
Constructors
| Name | Description |
|---|---|
| PostLoadCommandBuffer() | Initializes and returns an instance of PostLoadCommandBuffer. |
Fields
| Name | Description |
|---|---|
| CommandBuffer | Represents an EntityCommandBuffer. |
Methods
| Name | Description |
|---|---|
| Clone() | Increments the reference counter and returns a reference to the component. |
| Dispose() | Decrements the reference counter. When the reference counter reaches 0, the CommandBuffer is disposed. |