示例#1
0
 public static bool Has(this Material mat, ShaderProperty.BaseShaderPropertyIndex propertyPrefix,
                        ShaderTagValue val, bool searchFallBacks = false) =>
 val.Has(mat, propertyPrefix, searchFallBacks);
示例#2
0
 public bool Has(Material mat, ShaderProperty.BaseShaderPropertyIndex property, bool searchFallBacks = false) =>
 mat && value.Equals(tag.Get(mat, property, searchFallBacks));
示例#3
0
 public static string Get(this Material mat, ShaderProperty.BaseShaderPropertyIndex propertyPrefix,
                          ShaderTag tag, bool searchFallBacks = false) =>
 tag.Get(mat, propertyPrefix, searchFallBacks);
示例#4
0
 public string Get(Material mat, ShaderProperty.BaseShaderPropertyIndex property,
                   bool searchFallBacks = false) =>
 Get(mat, property.NameForDisplayPEGI(), searchFallBacks);