ドキュメント

Unity Engine

Download Unity

Unity Engine

InternalBufferCapacityAttribute

Specifies the maximum number of elements to store inside a chunk.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

[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 DynamicBuffer<T> 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.

Fields

Value

Description

CapacityThe number of elements stored inside the chunk.

Constructors

Constructor

Description

InternalBufferCapacityAttribute(System.Int32)The number of elements stored inside the chunk.

Inheritance

Inherited Members