示例#1
0
 public static Renderer Set <T>(this Renderer renderer, ShaderPropertyIndexGeneric <T> property, T value) =>
 property.SetOn(renderer, value);
示例#2
0
 public static Material Set <T>(this Material mat, ShaderPropertyIndexGeneric <T> property)
 {
     property.SetOn(mat);
     return(mat);
 }
示例#3
0
 public static Material Set <T>(this Material mat, ShaderPropertyIndexGeneric <T> property, T value) =>
 property.SetOn(mat, value);
示例#4
0
 public static MaterialPropertyBlock Set <T>(this MaterialPropertyBlock block, ShaderPropertyIndexGeneric <T> property, T value)
 {
     property.SetOn(block, value);
     return(block);
 }