UnityEngine.MaterialPropertyBlock.GetVector C# (CSharp) Method

GetVector() public method

Get a vector from the property block.

public GetVector ( int nameID ) : Vector4
nameID int
return Vector4
        public Vector4 GetVector(int nameID)
        {
            Vector4 vector;
            INTERNAL_CALL_GetVector(this, nameID, out vector);
            return vector;
        }

Same methods

MaterialPropertyBlock::GetVector ( string name ) : Vector4

Usage Example

コード例 #1
0
 static public int GetVector(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(int)))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             var ret = self.GetVector(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(string)))
         {
             UnityEngine.MaterialPropertyBlock self = (UnityEngine.MaterialPropertyBlock)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             var ret = self.GetVector(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         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::GetVector