Experimental: this API is experimental and might be changed or removed in the future.

SpriteShapeRenderer.GetChannels

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

Parameters

dataSizeSize to be reserved for the NativeArray.
indicesNativeArray of indices.
verticesNativeSlice of vertices.
texcoordsNativeSlice of texture coordinate for channel 0.

Description

Get/Set an array of mesh data of SpriteShapeRenderer.

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