public void AddColour32s(Color32[] a) { if (sharedMesh != null && a != null) { if (colour32s == null || colour32s.Length == 0) { colour32s = sharedMesh.colors32; } if (colour32s == null) { colour32s = (Color32[])a.Clone(); } else { colour32s = SGT_Helper.ArrayConcat(colour32s, a); } } }
public void AddUv1s(Vector2[] a) { if (sharedMesh != null && a != null) { if (uv1s == null || uv1s.Length == 0) { uv1s = sharedMesh.uv1; } if (uv1s == null) { uv1s = (Vector2[])a.Clone(); } else { uv1s = SGT_Helper.ArrayConcat(uv1s, a); } } }
public void AddTangents(Vector4[] a) { if (sharedMesh != null && a != null) { if (tangents == null || tangents.Length == 0) { tangents = sharedMesh.tangents; } if (tangents == null) { tangents = (Vector4[])a.Clone(); } else { tangents = SGT_Helper.ArrayConcat(tangents, a); } } }
public void AddNormals(Vector3[] a) { if (sharedMesh != null && a != null) { if (normals == null || normals.Length == 0) { normals = sharedMesh.normals; } if (normals == null) { normals = (Vector3[])a.Clone(); } else { normals = SGT_Helper.ArrayConcat(normals, a); } } }
public void AddPositions(Vector3[] a) { if (sharedMesh != null && a != null) { if (positions == null || positions.Length == 0) { positions = sharedMesh.vertices; } if (positions == null) { positions = (Vector3[])a.Clone(); } else { positions = SGT_Helper.ArrayConcat(positions, a); } } }
public void AddIndices(int[] a) { if (sharedMesh != null && a != null) { if (indices == null || indices.Length == 0) { indices = sharedMesh.triangles; } if (indices == null) { indices = (int[])a.Clone(); } else { indices = SGT_Helper.ArrayConcat(indices, a); } } }