UnityEngine.InteractiveCloth.AttachToCollider C# (CSharp) Method

AttachToCollider() public method

public AttachToCollider ( Collider collider ) : void
collider Collider
return void
		public void AttachToCollider(Collider collider){}
		public void DetachFromCollider(Collider collider){}

Same methods

InteractiveCloth::AttachToCollider ( Collider collider, bool tearable ) : void
InteractiveCloth::AttachToCollider ( Collider collider, bool tearable, bool twoWayInteraction ) : void

Usage Example

コード例 #1
0
 static public int AttachToCollider(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             UnityEngine.InteractiveCloth self = (UnityEngine.InteractiveCloth)checkSelf(l);
             UnityEngine.Collider         a1;
             checkType(l, 2, out a1);
             self.AttachToCollider(a1);
             return(0);
         }
         else if (argc == 3)
         {
             UnityEngine.InteractiveCloth self = (UnityEngine.InteractiveCloth)checkSelf(l);
             UnityEngine.Collider         a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.AttachToCollider(a1, a2);
             return(0);
         }
         else if (argc == 4)
         {
             UnityEngine.InteractiveCloth self = (UnityEngine.InteractiveCloth)checkSelf(l);
             UnityEngine.Collider         a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             System.Boolean a3;
             checkType(l, 4, out a3);
             self.AttachToCollider(a1, a2, a3);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.InteractiveCloth::AttachToCollider