UnityEngine.MaterialPropertyBlock.SetVectorArray C# (CSharp) Method

SetVectorArray() public method

public SetVectorArray ( int nameID, List values ) : void
nameID int
values List
return void
        public void SetVectorArray(int nameID, List<Vector4> values)
        {
            if (values == null)
            {
                throw new ArgumentNullException("values");
            }
            if (values.Count == 0)
            {
                throw new ArgumentException("Zero-sized array is not allowed.");
            }
            this.SetVectorArrayImplList(nameID, values);
        }

Same methods

MaterialPropertyBlock::SetVectorArray ( int nameID, Vector4 values ) : void
MaterialPropertyBlock::SetVectorArray ( string name, List values ) : void
MaterialPropertyBlock::SetVectorArray ( string name, Vector4 values ) : void

Usage Example

 static public int SetVectorArray(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(int), typeof(UnityEngine.Vector4[])))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             UnityEngine.Vector4[] a2;
             checkArray(l, 3, out a2);
             self.SetVectorArray(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(string), typeof(UnityEngine.Vector4[])))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             UnityEngine.Vector4[] a2;
             checkArray(l, 3, out a2);
             self.SetVectorArray(a1, a2);
             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.MaterialPropertyBlock::SetVectorArray