コード例 #1
0
 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();
     }
 }
コード例 #2
0
 public void SetUVs(int channel, List <Vector4> uvs)
 {
     this.SetUVsInternal(Mesh.ExtractListData(uvs), channel, 4, uvs.Count);
 }
コード例 #3
0
 public void SetUVs(int channel, List <Vector3> uvs)
 {
     this.SetUVsInternal(Mesh.ExtractListData((object)uvs), channel, 3, uvs.Count);
 }