static int _s_set_show(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ETCArea gen_to_be_invoked = (ETCArea)translator.FastGetCSObj(L, 1); gen_to_be_invoked.show = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
public override void OnInspectorGUI() { ETCArea t = (ETCArea)target; t.show = ETCGuiTools.Toggle("Show at runtime", t.show, true); EditorGUILayout.Space(); preset = (ETCArea.AreaPreset)EditorGUILayout.EnumPopup("Preset", preset); if (preset != ETCArea.AreaPreset.Choose) { t.ApplyPreset(preset); preset = ETCArea.AreaPreset.Choose; } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new ETCArea(); 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 ETCArea constructor!")); }
public override void OnInspectorGUI() { ETCArea t = (ETCArea)target; t.show = ETCGuiTools.Toggle("Show at runtime", t.show, true); EditorGUILayout.Space(); preset = (ETCArea.AreaPreset)EditorGUILayout.EnumPopup("Preset", preset); if (preset != ETCArea.AreaPreset.Choose) { t.ApplyPreset(preset); preset = ETCArea.AreaPreset.Choose; } if (GUI.changed) { EditorUtility.SetDirty(t); EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); } }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ETCArea gen_to_be_invoked = (ETCArea)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Awake( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ApplyPreset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ETCArea gen_to_be_invoked = (ETCArea)translator.FastGetCSObj(L, 1); { ETCArea.AreaPreset _preset; translator.Get(L, 2, out _preset); gen_to_be_invoked.ApplyPreset(_preset); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }