Method - Static
public static int PropertyID(string name)
|
Parameters
name
|
string
|
Name of the property
|
Returns
int
Unique ID
DescriptionGet a unique ID of a shader property. Property IDs are more efficient than property name strings, and should be used instead for optimal performance. Note that property IDs are tied to the property name, not to any particular shader. The same property ID can be used with multiple shaders that have the same property names. ExampleSee AlsoRB.ShaderSet RB.ShaderApplyNow RB.ShaderReset ShaderAsset.ColorSet ShaderAsset.ColorArraySet ShaderAsset.FloatSet ShaderAsset.IntSet ShaderAsset.MatrixSet ShaderAsset.MatrixArraySet ShaderAsset.VectorSet ShaderAsset.VectorArraySet ShaderAsset.SpriteSheetTextureSet ShaderAsset.SpriteSheetFilterSetSee DocsFeatures - Shaders (Advanced Topic) |