static public int set_locked(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); bool v; checkType(l, 2, out v); self.locked = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
public void SetSources(List <ConstraintSource> sources) { bool flag = sources == null; if (flag) { throw new ArgumentNullException("sources"); } LookAtConstraint.SetSourcesInternal(this, sources); }
static public int get_sourceCount(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); pushValue(l, true); pushValue(l, self.sourceCount); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int GetSources(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); System.Collections.Generic.List <UnityEngine.Animations.ConstraintSource> a1; checkType(l, 2, out a1); self.GetSources(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int RemoveSource(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.RemoveSource(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_useUpObject(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); bool v; checkType(l, 2, out v); self.useUpObject = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_rotationOffset(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); UnityEngine.Vector3 v; checkType(l, 2, out v); self.rotationOffset = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int AddSource(IntPtr l) { try { UnityEngine.Animations.LookAtConstraint self = (UnityEngine.Animations.LookAtConstraint)checkSelf(l); UnityEngine.Animations.ConstraintSource a1; checkValueType(l, 2, out a1); var ret = self.AddSource(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int RemoveSource(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)ToLua.CheckObject(L, 1, typeof(UnityEngine.Animations.LookAtConstraint)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.RemoveSource(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSources(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)ToLua.CheckObject(L, 1, typeof(UnityEngine.Animations.LookAtConstraint)); System.Collections.Generic.List <UnityEngine.Animations.ConstraintSource> arg0 = (System.Collections.Generic.List <UnityEngine.Animations.ConstraintSource>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Animations.ConstraintSource>)); obj.SetSources(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSource(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)ToLua.CheckObject(L, 1, typeof(UnityEngine.Animations.LookAtConstraint)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.Animations.ConstraintSource arg1 = StackTraits <UnityEngine.Animations.ConstraintSource> .Check(L, 3); obj.SetSource(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_roll(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; float ret = obj.roll; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index roll on a nil value")); } }
static int get_worldUpObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; UnityEngine.Transform ret = obj.worldUpObject; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index worldUpObject on a nil value")); } }
static int set_worldUpObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2); obj.worldUpObject = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index worldUpObject on a nil value")); } }
static int AddSource(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)ToLua.CheckObject(L, 1, typeof(UnityEngine.Animations.LookAtConstraint)); UnityEngine.Animations.ConstraintSource arg0 = StackTraits <UnityEngine.Animations.ConstraintSource> .Check(L, 2); int o = obj.AddSource(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_useUpObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.useUpObject = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index useUpObject on a nil value")); } }
static int set_rotationOffset(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.rotationOffset = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rotationOffset on a nil value")); } }
static int set_roll(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.roll = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index roll on a nil value")); } }
static int get_sourceCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; int ret = obj.sourceCount; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sourceCount on a nil value")); } }
static int get_useUpObject(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Animations.LookAtConstraint obj = (UnityEngine.Animations.LookAtConstraint)o; bool ret = obj.useUpObject; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index useUpObject on a nil value")); } }
private static extern void Internal_Create([Writable] LookAtConstraint self);
private static extern void SetSourcesInternal([NotNull("ArgumentNullException")] LookAtConstraint self, List <ConstraintSource> sources);
private static extern int GetSourceCountInternal([NotNull] LookAtConstraint self);
private static extern int GetSourceCountInternal([NotNull("ArgumentNullException")] LookAtConstraint self);
private static extern void SetSourcesInternal([NotNull] LookAtConstraint self, List <ConstraintSource> sources);
private LookAtConstraint() { LookAtConstraint.Internal_Create(this); }