Class InteractableThemeProperty
Inheritance
InteractableThemeProperty
Assembly: cs.temp.dll.dll
[Serializable]
public class InteractableThemeProperty
Fields
Declaration
public InteractableThemePropertyValue Default
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
public List<string> ShaderOptionNames
Field Value
Declaration
public List<ShaderProperties> ShaderOptions
Field Value
Declaration
public InteractableThemePropertyValue StartValue
Field Value
Declaration
public InteractableThemePropertyValueTypes Type
Field Value
Declaration
public List<InteractableThemePropertyValue> Values
Field Value
Methods
This method gets the integer key assigned by Unity at runtime for the current shader property.
It will also lazy load the array of possible key values on first access using Unity's Shader.PropertyToID()
It is generally preferred to use the integer key over the string key with Unity to avoid perf cost for the dictionary lookup on every get/set.
ex: On SetFloat(string key), Unity will perform Shader.PropertyToID() itself every call
Declaration
public int GetShaderPropertyId()
Returns
Type |
Description |
Int32 |
integer key for current shader property to get/set shader values. Returns default backup property in case of failure
|
Get the current shader property name. Again it is preferred to utilize the integer key over the string key in Unity
Declaration
public string GetShaderPropertyName()
Returns
Type |
Description |
String |
string name of current property. Returns default backup property in case of failure
|