static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.CanvasRenderer(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _s_set_popMaterialCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); gen_to_be_invoked.popMaterialCount = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_hasMoved(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.hasMoved); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_hasPopInstruction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); gen_to_be_invoked.hasPopInstruction = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_cull(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.cull = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_cull(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.cull); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_clippingSoftness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector2(L, gen_to_be_invoked.clippingSoftness); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_clippingSoftness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); UnityEngine.Vector2 gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.clippingSoftness = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.CanvasRenderer o = (UnityEngine.CanvasRenderer)obj; hasPopInstruction = o.hasPopInstruction; materialCount = o.materialCount; popMaterialCount = o.popMaterialCount; cull = o.cull; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.CanvasRenderer o = (UnityEngine.CanvasRenderer)obj; o.hasPopInstruction = hasPopInstruction; o.materialCount = materialCount; o.popMaterialCount = popMaterialCount; o.cull = cull; return(o); }
public void Init(Factory factory) { renderers = new List<IMeshRenderer>(); canvasRenderer = gameObject.AddComponent<UnityEngine.CanvasRenderer>(); UpdateSortingLayerAndOrder(factory); UpdateLayer(factory); if (factory.useAdditionalColor) { additionalColor = UnityEngine.Color.clear; property = new MaterialPropertyBlock(); additionalColorId = Shader.PropertyToID("_AdditionalColor"); } buffer = new UIVertexBuffer(); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.CanvasRenderer gen_ret = new UnityEngine.CanvasRenderer(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer constructor!")); }
static int _m_Clear(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Clear( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetAlpha(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { float __cl_gen_ret = __cl_gen_to_be_invoked.GetAlpha( ); LuaAPI.lua_pushnumber(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_DisableRectClipping(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.DisableRectClipping( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetColor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); { UnityEngine.Color gen_ret = gen_to_be_invoked.GetColor( ); translator.PushUnityEngineColor(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetMesh(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { UnityEngine.Mesh mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); __cl_gen_to_be_invoked.SetMesh(mesh); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetMaterial(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Material>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Material material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); int index = LuaAPI.xlua_tointeger(L, 3); __cl_gen_to_be_invoked.SetMaterial(material, index); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Material>(L, 2) && translator.Assignable <UnityEngine.Texture>(L, 3)) { UnityEngine.Material material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); UnityEngine.Texture texture = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); __cl_gen_to_be_invoked.SetMaterial(material, texture); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.SetMaterial!")); }
static int _m_EnableRectClipping(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { UnityEngine.Rect rect; translator.Get(L, 2, out rect); __cl_gen_to_be_invoked.EnableRectClipping(rect); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetColor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); { UnityEngine.Color _color; translator.Get(L, 2, out _color); gen_to_be_invoked.SetColor(_color); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetPopMaterial(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { int index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Material __cl_gen_ret = __cl_gen_to_be_invoked.GetPopMaterial(index); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetPopMaterial(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); try { { UnityEngine.Material material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); int index = LuaAPI.xlua_tointeger(L, 3); __cl_gen_to_be_invoked.SetPopMaterial(material, index); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetAlphaTexture(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); { UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); gen_to_be_invoked.SetAlphaTexture(_texture); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetAlpha(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); { float _alpha = (float)LuaAPI.lua_tonumber(L, 2); gen_to_be_invoked.SetAlpha(_alpha); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetMaterial(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasRenderer __cl_gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1) { UnityEngine.Material __cl_gen_ret = __cl_gen_to_be_invoked.GetMaterial( ); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Material __cl_gen_ret = __cl_gen_to_be_invoked.GetMaterial(index); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.GetMaterial!")); }