Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

CanvasRenderer.AddUIVertexStream

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector4> uv0S, List<Vector4> uv1S, List<Vector3> normals, List<Vector4> tangents);

Parameters

Parameter Description
verts The UIVertex list to split.
positions The destination list for the vertex positions.
colors The destination list for the vertex colors.
uv0S The destination list for the vertex uv0s.
uv1S The destination list for the vertex uv1s.
normals The destination list for the vertex normals.
tangents The destination list for the vertex tangents.

Description

Take the UIVertex stream and split it into the corresponding arrays (positions, colors, uv0s, uv1s, normals and tangents).


Declaration

public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector4> uv0S, List<Vector4> uv1S, List<Vector4> uv2S, List<Vector4> uv3S, List<Vector3> normals, List<Vector4> tangents);

Parameters

Parameter Description
verts The UIVertex list to split.
positions The destination list for the vertex positions.
colors The destination list for the vertex colors.
uv0S The destination list for the vertex uv0s.
uv1S The destination list for the vertex uv1s.
uv2S The destination list for the vertex uv2s.
uv3S The destination list for the vertex uv3s.
normals The destination list for the vertex normals.
tangents The destination list for the vertex tangents.

Description

Take the UIVertex stream and split it into the corresponding arrays (positions, colors, uv0s, uv1s, uv2s, uv3s, normals and tangents).


Declaration

public static void AddUIVertexStream(List<UIVertex> verts, List<Vector3> positions, List<Color32> colors, List<Vector4> uv0S, List<Vector4> uv1S, List<Vector4> uv2S, List<Vector4> uv3S, List<Vector3> normals, List<Vector4> tangents, List<Vector4> prevPositions);

Parameters

Parameter Description
verts The UIVertex list to split.
positions The destination list for the vertex positions.
colors The destination list for the vertex colors.
uv0S The destination list for the vertex uv0s.
uv1S The destination list for the vertex uv1s.
uv2S The destination list for the vertex uv2s.
uv3S The destination list for the vertex uv3s.
normals The destination list for the vertex normals.
tangents The destination list for the vertex tangents.
prevPositions The destination list for the previous vertex positions.

Description

Take the UIVertex stream and split it into the corresponding arrays (positions, colors, uv0s, uv1s, uv2s, uv3s, normals, tangents and previous positions).