Show / Hide Table of Contents

    Class InteractableThemeProperty

    Base class for themes

    Inheritance
    Object
    InteractableThemeProperty
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class InteractableThemeProperty

    Fields

    Default

    Declaration
    public InteractableThemePropertyValue Default
    Field Value
    Type Description
    InteractableThemePropertyValue

    Name

    Declaration
    public string Name
    Field Value
    Type Description
    String

    PropId

    Declaration
    public int PropId
    Field Value
    Type Description
    Int32

    ShaderName

    Declaration
    public string ShaderName
    Field Value
    Type Description
    String

    ShaderOptionNames

    Declaration
    public List<string> ShaderOptionNames
    Field Value
    Type Description
    List<String>

    ShaderOptions

    Declaration
    public List<ShaderProperties> ShaderOptions
    Field Value
    Type Description
    List<ShaderProperties>

    StartValue

    Declaration
    public InteractableThemePropertyValue StartValue
    Field Value
    Type Description
    InteractableThemePropertyValue

    Type

    Declaration
    public InteractableThemePropertyValueTypes Type
    Field Value
    Type Description
    InteractableThemePropertyValueTypes

    Values

    Declaration
    public List<InteractableThemePropertyValue> Values
    Field Value
    Type Description
    List<InteractableThemePropertyValue>

    Methods

    GetShaderPropertyId()

    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

    GetShaderPropertyName()

    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

    Back to top Generated by DocFX