Inheritance: Behaviour
 static public int constructor(IntPtr l)
 {
     UnityEngine.Skybox o;
     o = new UnityEngine.Skybox();
     pushObject(l, o);
     return(1);
 }
Beispiel #2
0
 static public int get_material(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.Skybox self = (UnityEngine.Skybox)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.material);
         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
 }
 static public int set_material(IntPtr l)
 {
     UnityEngine.Skybox   o = (UnityEngine.Skybox)checkSelf(l);
     UnityEngine.Material v;
     checkType(l, 2, out v);
     o.material = v;
     return(0);
 }
Beispiel #4
0
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.Skybox skybox = (UnityEngine.Skybox)value;
     writer.WriteProperty("material", skybox.material);
     writer.WriteProperty("enabled", skybox.enabled);
     writer.WriteProperty("tag", skybox.tag);
     writer.WriteProperty("name", skybox.name);
     writer.WriteProperty("hideFlags", skybox.hideFlags);
 }
 static public int get_material(IntPtr l)
 {
     try {
         UnityEngine.Skybox self = (UnityEngine.Skybox)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.material);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #6
0
 static public int get_material(IntPtr l)
 {
     try {
         UnityEngine.Skybox self = (UnityEngine.Skybox)checkSelf(l);
         pushValue(l, self.material);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.Skybox o;
         o=new UnityEngine.Skybox();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
Beispiel #8
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Skybox o;
         o = new UnityEngine.Skybox();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Beispiel #9
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.Skybox o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.Skybox();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.Skybox o;
         o=new UnityEngine.Skybox();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Skybox o;
         o = new UnityEngine.Skybox();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_material(IntPtr l)
 {
     try {
         UnityEngine.Skybox   self = (UnityEngine.Skybox)checkSelf(l);
         UnityEngine.Material v;
         checkType(l, 2, out v);
         self.material = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #13
0
 static public int set_material(IntPtr l)
 {
     try {
         UnityEngine.Skybox   self = (UnityEngine.Skybox)checkSelf(l);
         UnityEngine.Material v;
         checkType(l, 2, out v);
         self.material = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
// fields

// properties
    static void Skybox_material(JSVCall vc)
    {
        if (vc.bGet)
        {
            UnityEngine.Skybox _this = (UnityEngine.Skybox)vc.csObj;
            var result = _this.material;
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, result);
        }
        else
        {
            UnityEngine.Material arg0  = (UnityEngine.Material)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            UnityEngine.Skybox   _this = (UnityEngine.Skybox)vc.csObj;
            _this.material = arg0;
        }
    }
Beispiel #15
0
    static int get_material(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Skybox   obj = (UnityEngine.Skybox)o;
            UnityEngine.Material ret = obj.material;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index material on a nil value" : e.Message));
        }
    }
Beispiel #16
0
    static int set_material(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Skybox   obj  = (UnityEngine.Skybox)o;
            UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
            obj.material = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index material on a nil value" : e.Message));
        }
    }
Beispiel #17
0
    static int _CreateUnityEngine_Skybox(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.Skybox obj = new UnityEngine.Skybox();
                ToLua.Push(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Skybox.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #18
0
        /// <summary>
        /// Read the data into the specified value.
        /// </summary>
        /// <param name="value">Value.</param>
        /// <param name="reader">Reader.</param>
        public override void ReadInto(object value, ISaveGameReader reader)
        {
            UnityEngine.Skybox skybox = (UnityEngine.Skybox)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "material":
                    if (skybox.material == null)
                    {
                        skybox.material = reader.ReadProperty <UnityEngine.Material> ();
                    }
                    else
                    {
                        reader.ReadIntoProperty <UnityEngine.Material> (skybox.material);
                    }
                    break;

                case "enabled":
                    skybox.enabled = reader.ReadProperty <System.Boolean> ();
                    break;

                case "tag":
                    skybox.tag = reader.ReadProperty <System.String> ();
                    break;

                case "name":
                    skybox.name = reader.ReadProperty <System.String> ();
                    break;

                case "hideFlags":
                    skybox.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> ();
                    break;
                }
            }
        }
Beispiel #19
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.Skybox skybox = SaveGameType.CreateComponent <UnityEngine.Skybox> ();
     ReadInto(skybox, reader);
     return(skybox);
 }
 static public int get_material(IntPtr l)
 {
     UnityEngine.Skybox o = (UnityEngine.Skybox)checkSelf(l);
     pushValue(l, o.material);
     return(1);
 }