Struct BufferFromEntity<T>
Namespace: Unity.Entities
Syntax
[NativeContainer]
public struct BufferFromEntity<T>
where T : struct, IBufferElementData
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Description |
---|---|
Item[Entity] |
Methods
Name | Description |
---|---|
DidChange(Entity, UInt32) | Reports whether any of IBufferElementData components of the type T, in the chunk containing the specified Entity, could have changed. |
HasComponent(Entity) | Reports whether the specified Entity instance still refers to a valid entity and that it has a buffer component of type T. |
TryGetBuffer(Entity, out DynamicBuffer<T>) | Retrieves the buffer components associated with the specified Entity, if it exists. Then reports if the instance still refers to a valid entity and that it has a buffer component of type T. |