IsDestroyed() public method

Returns true if the native representation of the behaviour has been destroyed.

public IsDestroyed ( ) : bool
return bool
コード例 #1
0
 static public int IsDestroyed(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.EventSystems.UIBehaviour self = (UnityEngine.EventSystems.UIBehaviour)checkSelf(l);
         var ret = self.IsDestroyed();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     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
 }
コード例 #2
0
    static int IsDestroyed(IntPtr L)
    {
        L.ChkArgsCount(1);
        UnityEngine.EventSystems.UIBehaviour obj = (UnityEngine.EventSystems.UIBehaviour)L.ChkUnityObjectSelf(1, "UnityEngine.EventSystems.UIBehaviour");
        bool o = obj.IsDestroyed();

        L.PushBoolean(o);
        return(1);
    }
    static int IsDestroyed(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UnityEngine.EventSystems.UIBehaviour obj = (UnityEngine.EventSystems.UIBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.EventSystems.UIBehaviour");
        bool o = obj.IsDestroyed();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #4
0
 static public int IsDestroyed(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.UIBehaviour self = (UnityEngine.EventSystems.UIBehaviour)checkSelf(l);
         var ret = self.IsDestroyed();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int IsDestroyed(IntPtr l)
 {
     try{
         UnityEngine.EventSystems.UIBehaviour self = (UnityEngine.EventSystems.UIBehaviour)checkSelf(l);
         System.Boolean ret = self.IsDestroyed();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static int QPYX_IsDestroyed_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.EventSystems.UIBehaviour QPYX_obj_YXQP = (UnityEngine.EventSystems.UIBehaviour)ToLua.CheckObject <UnityEngine.EventSystems.UIBehaviour>(L_YXQP, 1);
         bool QPYX_o_YXQP = QPYX_obj_YXQP.IsDestroyed();
         LuaDLL.lua_pushboolean(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #7
0
 static int IsDestroyed(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.EventSystems.UIBehaviour obj = (UnityEngine.EventSystems.UIBehaviour)ToLua.CheckObject <UnityEngine.EventSystems.UIBehaviour>(L, 1);
         bool o = obj.IsDestroyed();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #8
0
    static int IsDestroyed(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.EventSystems.UIBehaviour.IsDestroyed");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 1);
            UnityEngine.EventSystems.UIBehaviour obj = (UnityEngine.EventSystems.UIBehaviour)ToLua.CheckObject <UnityEngine.EventSystems.UIBehaviour>(L, 1);
            bool o = obj.IsDestroyed();
            LuaDLL.lua_pushboolean(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }