Пример #1
0
 public static T Get <T>(this Material mat, ShaderPropertyIndexGeneric <T> property) => property.Get(mat);
Пример #2
0
 public static Renderer Set <T>(this Renderer renderer, ShaderPropertyIndexGeneric <T> property, T value) =>
 property.SetOn(renderer, value);
Пример #3
0
 public static Material Set <T>(this Material mat, ShaderPropertyIndexGeneric <T> property)
 {
     property.SetOn(mat);
     return(mat);
 }
Пример #4
0
 public static Material Set <T>(this Material mat, ShaderPropertyIndexGeneric <T> property, T value) =>
 property.SetOn(mat, value);
Пример #5
0
 public static MaterialPropertyBlock Set <T>(this MaterialPropertyBlock block, ShaderPropertyIndexGeneric <T> property, T value)
 {
     property.SetOn(block, value);
     return(block);
 }