static object PerformMemberwiseClone(ref object o) { var ins = new UnityEngine.PrimitiveType(); ins = (UnityEngine.PrimitiveType)o; return(ins); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.PrimitiveType o = (UnityEngine.PrimitiveType)arg0; ToLua.Push(L, o); return(1); }
public static int CreatePrimitive(IntPtr L) { int result = 1; int count = LuaDLL.lua_gettop(L); UnityEngine.PrimitiveType arg1 = (UnityEngine.PrimitiveType)(double)(LuaStatic.GetObj(L, 2)); LuaStatic.addGameObject2Lua(L, UnityEngine.GameObject.CreatePrimitive(arg1), "GameObject"); return(result); }
static int QPYX_CreatePrimitive_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 1); UnityEngine.PrimitiveType QPYX_arg0_YXQP = (UnityEngine.PrimitiveType)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.PrimitiveType)); UnityEngine.GameObject QPYX_o_YXQP = UnityEngine.GameObject.CreatePrimitive(QPYX_arg0_YXQP); ToLua.PushSealed(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static StackObject *CreatePrimitive_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.PrimitiveType type = (UnityEngine.PrimitiveType) typeof(UnityEngine.PrimitiveType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = UnityEngine.GameObject.CreatePrimitive(type); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int CreatePrimitive(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.PrimitiveType arg0 = (UnityEngine.PrimitiveType)ToLua.CheckObject(L, 1, typeof(UnityEngine.PrimitiveType)); UnityEngine.GameObject o = UnityEngine.GameObject.CreatePrimitive(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreatePrimitive(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.PrimitiveType arg0 = (UnityEngine.PrimitiveType)LuaDLL.luaL_checknumber(L, 1); var o = UnityEngine.GameObject.CreatePrimitive(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.PrimitiveType instance_of_this_method) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.Object: { __mStack[ptr_of_this_method->Value] = instance_of_this_method; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { var t = __domain.GetType(___obj.GetType()) as CLRType; t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.PrimitiveType[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method; } break; } }
static int CreatePrimitive(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.GameObject.CreatePrimitive"); #endif try { ToLua.CheckArgsCount(L, 1); UnityEngine.PrimitiveType arg0 = (UnityEngine.PrimitiveType)ToLua.CheckObject(L, 1, typeof(UnityEngine.PrimitiveType)); UnityEngine.GameObject o = UnityEngine.GameObject.CreatePrimitive(arg0); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
// creates a button that is just the mesh, basically same as above but without the background disc public void Create(UnityEngine.PrimitiveType eType, fMaterial primMaterial, float fPrimScale = 1.0f) { button = GameObjectFactory.CreateParentGO(UniqueNames.GetNext("HUDButton")); buttonMesh = AppendUnityPrimitiveGO(UniqueNames.GetNext("HUDButton"), eType, primMaterial, button); float primSize = Shape.EffectiveRadius() * fPrimScale; buttonMesh.SetLocalScale(new Vector3f(primSize, primSize, primSize)); buttonMesh.Translate(new Vector3f(0.0f, 0.0f, -primSize), false); Quaternionf rot = buttonMesh.GetLocalRotation(); rot = rot * Quaternionf.AxisAngleD(Vector3f.AxisY, 45.0f); rot = rot * Quaternionf.AxisAngleD(Vector3f.AxisX, -15.0f); buttonMesh.SetLocalRotation(rot); //buttonMesh.transform.Rotate(-15.0f, 45.0f, 0.0f, Space.Self); MaterialUtil.DisableShadows(buttonMesh); standard_mat = new fMaterial(primMaterial); }
public static UnityEngine.GameObject CreatePrimitive(UnityEngine.PrimitiveType type) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
static void Push(IntPtr L, UnityEngine.PrimitiveType arg) { ToLua.Push(L, arg); }