Rendering.VertexAttributeDescriptor.VertexAttributeDescriptor

Unity · Версия 2020.3 LTS · Scripting · VertexAttributeDescriptor

Rendering.VertexAttributeDescriptor.VertexAttributeDescriptor

Объявление

public VertexAttributeDescriptor(Rendering.VertexAttribute attribute, Rendering.VertexAttributeFormat format, int dimension, int stream);

Параметры

attribute Атрибут вершины.
format Формат атрибута вершины. По умолчанию используется VertexAttributeFormat.Float32.
dimension Размерность атрибута вершины (от 1 до 4). По умолчанию 3.
stream Поток буфера вершин, в который следует поместить атрибут. Значение по умолчанию — 0.

Описание

Создайте структуру VertexAttributeDescriptor.

Смотрите так же: Mesh.SetVertexBufferParams, Mesh.GetVertexAttributes.

Обновлено 17 ноября 2026 г.