UnityEngine.Renderer.SetPropertyBlock C# (CSharp) 메소드

SetPropertyBlock() 개인적인 메소드

private SetPropertyBlock ( MaterialPropertyBlock properties ) : void
properties MaterialPropertyBlock
리턴 void
        public extern void SetPropertyBlock(MaterialPropertyBlock properties);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

예제 #1
0
 static public int SetPropertyBlock(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 4)
         {
             UnityEngine.Renderer self = (UnityEngine.Renderer)checkSelf(l);
             UnityEngine.MaterialPropertyBlock a1;
             checkType(l, 3, out a1);
             System.Int32 a2;
             checkType(l, 4, out a2);
             self.SetPropertyBlock(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             UnityEngine.Renderer self = (UnityEngine.Renderer)checkSelf(l);
             UnityEngine.MaterialPropertyBlock a1;
             checkType(l, 3, out a1);
             self.SetPropertyBlock(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UnityEngine.Renderer::SetPropertyBlock