SpriteShapeRenderer.GetChannels

Declaration

public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords);

Declaration

public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Vector4> tangents);

Declaration

public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Vector4> tangents, out NativeSlice<Vector3> normals);

Parameters

dataSize Size to be reserved for the NativeArray.
indices NativeArray of indices.
vertices NativeSlice of vertices.
texcoords NativeSlice of texture coordinate for channel 0.
tangents NativeSlice of tangents.
normals NativeSlice of normals.

Description

Get/Set an array of mesh data of SpriteShapeRenderer.


Did you find this page useful? Please give it a rating: