Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

InternalBufferCapacityAttribute

class in Unity.Entities

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Specifies the maximum number of elements to store inside a chunk.

Use this attribute on the declaration of your IBufferElementData subtype:

[InternalBufferCapacity(10)] public struct FloatBufferElement : IBufferElementData { public float Value; }

All DynamicBuffer<T0> with this type of element store the specified number of elements inside the chunk along with other component types in the same archetype. When the number of elements in the buffer exceeds this limit, the entire buffer is moved outside the chunk.

DefaultBufferCapacityNumerator defines the default number of elements.

Properties

Property Description
Capacity The number of elements stored inside the chunk.

Constructors

Constructor Description
InternalBufferCapacityAttribute The number of elements stored inside the chunk.