WorldToLocal() public method

转换世界坐标点到等效的本地xy平面的点。等效的意思是他们在屏幕方向看到的位置一样。 返回的点是在对象的本地坐标空间,且z=0
public WorldToLocal ( Vector3 worldPoint, Vector3 direction ) : Vector3
worldPoint UnityEngine.Vector3
direction UnityEngine.Vector3
return UnityEngine.Vector3
 static public int WorldToLocal(IntPtr l)
 {
     try {
         FairyGUI.DisplayObject self = (FairyGUI.DisplayObject)checkSelf(l);
         UnityEngine.Vector3    a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector3 a2;
         checkType(l, 3, out a2);
         var ret = self.WorldToLocal(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }