Class InternalBufferCapacityAttribute
Specifies the maximum number of elements to store inside a chunk.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
[AttributeUsage(AttributeTargets.Struct)]
public class InternalBufferCapacityAttribute : Attribute
Remarks
Use this attribute on the declaration of your IBufferElementData subtype:
[InternalBufferCapacity(10)]
public struct FloatBufferElement : IBufferElementData
{
public float Value;
}
All Dynamic
Default
Constructors
Name | Description |
---|---|
Internal |
The number of elements stored inside the chunk. |
Fields
Name | Description |
---|---|
Capacity | The number of elements stored inside the chunk. |