FairyGUI.Stage.SetCustomInput C# (CSharp) Method

SetCustomInput() public method

public SetCustomInput ( RaycastHit &hit, bool buttonDown ) : void
hit RaycastHit
buttonDown bool
return void
		public void SetCustomInput(ref RaycastHit hit, bool buttonDown)
		{
			Vector2 screenPos = Camera.main.WorldToScreenPoint(hit.point);
			HitTestContext.CacheRaycastHit(Camera.main, ref hit);
			SetCustomInput(screenPos, buttonDown);
		}

Same methods

Stage::SetCustomInput ( RaycastHit &hit, bool buttonDown, bool buttonUp ) : void
Stage::SetCustomInput ( Vector2 screenPos, bool buttonDown ) : void
Stage::SetCustomInput ( Vector2 screenPos, bool buttonDown, bool buttonUp ) : void

Usage Example

Example #1
0
 static public int SetCustomInput(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.RaycastHit), typeof(bool)))
         {
             FairyGUI.Stage         self = (FairyGUI.Stage)checkSelf(l);
             UnityEngine.RaycastHit a1;
             checkValueType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.SetCustomInput(ref a1, a2);
             pushValue(l, true);
             pushValue(l, a1);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector2), typeof(bool)))
         {
             FairyGUI.Stage      self = (FairyGUI.Stage)checkSelf(l);
             UnityEngine.Vector2 a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.SetCustomInput(a1, a2);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Stage::SetCustomInput