Пример #1
0
 /// 像素向量到英寸
 public static UnityEngine.Vector2 Inches(this UnityEngine.Vector2 vecInPixels)
 {
     return(vecInPixels.In(DistanceUnit.Inches));
 }
Пример #2
0
 /// 像素向量到厘米
 public static UnityEngine.Vector2 Centimeters(this UnityEngine.Vector2 vecInPixels)
 {
     return(vecInPixels.In(DistanceUnit.Centimeters));
 }