Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetChannels

Get/Set an array of mesh data of SpriteShapeRenderer.
Read time 3 minutesLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.U2D
  • Assembly: UnityEngine.SpriteShapeModule

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>)

Get/Set an array of mesh data of SpriteShapeRenderer.
public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords)

Parameters

dataSize

Size to be reserved for the NativeArray.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>, NativeSlice<Color32>)

Get/Set an array of mesh data of SpriteShapeRenderer.
public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Color32> colors)

Parameters

dataSize

Size to be reserved for the NativeArray.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>, NativeSlice<Vector4>)

Get/Set an array of mesh data of SpriteShapeRenderer.
public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Vector4> tangents)

Parameters

dataSize

Size to be reserved for the NativeArray.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.

NativeSlice of tangents.

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>, NativeSlice<Color32>, NativeSlice<Vector4>)

Get/Set an array of mesh data of SpriteShapeRenderer.
public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Color32> colors, out NativeSlice<Vector4> tangents)

Parameters

dataSize

Size to be reserved for the NativeArray.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.


NativeSlice of tangents.

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>, NativeSlice<Vector4>, NativeSlice<Vector3>)

Get/Set an array of mesh data of SpriteShapeRenderer.
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.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.

NativeSlice of tangents.

NativeSlice of normals.

GetChannels(int, NativeArray<ushort>, NativeSlice<Vector3>, NativeSlice<Vector2>, NativeSlice<Color32>, NativeSlice<Vector4>, NativeSlice<Vector3>)

Get/Set an array of mesh data of SpriteShapeRenderer.
public void GetChannels(int dataSize, out NativeArray<ushort> indices, out NativeSlice<Vector3> vertices, out NativeSlice<Vector2> texcoords, out NativeSlice<Color32> colors, out NativeSlice<Vector4> tangents, out NativeSlice<Vector3> normals)

Parameters

dataSize

Size to be reserved for the NativeArray.

NativeArray of indices.

NativeSlice of vertices.

NativeSlice of texture coordinate for channel 0.


NativeSlice of tangents.

NativeSlice of normals.