SetPoint() public method

public SetPoint ( Point point ) : void
point Point
return void
Exemplo n.º 1
0
 public void ResetControlPointPositions()
 {
     if (controlPoints != null && controlPoints.Length > 0)
     {
         for (int i = 0; i < controlPoints.Length; i++)
         {
             if (controlPoints[i].originalPosition != meshFilter.sharedMesh.vertices[i])
             {
                 controlPoints[i].originalPosition = meshFilter.sharedMesh.vertices[i];
             }
             controlPoints[i].ResetPosition();
             points.SetPoint(controlPoints[i]);
         }
     }
 }
Exemplo n.º 2
0
 // Reset the control point positions of this Skin2D
 public void ResetControlPointPositions()
 {
     if (controlPoints != null && controlPoints.Length > 0)
     {
         for (int i = 0; i < controlPoints.Length; i++)
         {
             if (controlPoints[i].originalPosition != meshFilter.sharedMesh.vertices[i])
             {
                 controlPoints[i].originalPosition = meshFilter.sharedMesh.vertices[i];
             }
             controlPoints[i].ResetPosition();
             points.SetPoint(controlPoints[i]);
         }
     }
     else
     {
         Debug.Log("No control points for Skin2D: " + name);
     }
 }
Exemplo n.º 3
0
 public void ResetControlPointPositions()
 {
     ControlPoint[] cps = GetComponentsInChildren <ControlPoint>();
     if (cps != null && cps.Length > 0)
     {
         for (int n = 0; n < cps.Length; n++)
         {
             cps[n].ResetPosition();
             // Debug.Log("Reset Control Point Positions for " + gameObject.name);
         }
     }
     if (controlPoints != null && controlPoints.Length > 0)
     {
         for (int i = 0; i < controlPoints.Length; i++)
         {
             if (controlPoints[i].originalPosition != meshFilter.sharedMesh.vertices[i])
             {
                 controlPoints[i].originalPosition = meshFilter.sharedMesh.vertices[i];
             }
             controlPoints[i].ResetPosition();
             points.SetPoint(controlPoints[i]);
         }
     }
 }