UnityEngine.MaterialPropertyBlock.AddTexture C# (CSharp) Method

AddTexture() private method

private AddTexture ( int nameID, Texture value ) : void
nameID int
value Texture
return void
        public void AddTexture(int nameID, Texture value)
        {
            this.SetTexture(nameID, value);
        }

Same methods

MaterialPropertyBlock::AddTexture ( string name, Texture value ) : void

Usage Example

コード例 #1
0
 static public int AddTexture(IntPtr l)
 {
     try{
         if (matchType(l, 2, typeof(System.String), typeof(UnityEngine.Texture)))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             UnityEngine.Texture a2;
             checkType(l, 3, out a2);
             self.AddTexture(a1, a2);
             return(0);
         }
         else if (matchType(l, 2, typeof(System.Int32), typeof(UnityEngine.Texture)))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             UnityEngine.Texture a2;
             checkType(l, 3, out a2);
             self.AddTexture(a1, a2);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.MaterialPropertyBlock::AddTexture