private void GetUVsImpl <T>(int channel, List <T> uvs, int dim) { if (uvs == null) { throw new ArgumentException("The result uvs list cannot be null"); } if (this.CheckCanAccessUVChannel(channel)) { int vertexCount = this.vertexCount; if (vertexCount > uvs.Capacity) { uvs.Capacity = vertexCount; } Mesh.ResizeList(uvs, vertexCount); this.GetUVsInternal(Mesh.ExtractListData(uvs), channel, dim); } else { uvs.Clear(); } }
public void SetUVs(int channel, List <Vector4> uvs) { this.SetUVsInternal(Mesh.ExtractListData(uvs), channel, 4, uvs.Count); }
public void SetUVs(int channel, List <Vector3> uvs) { this.SetUVsInternal(Mesh.ExtractListData((object)uvs), channel, 3, uvs.Count); }