IDataConsumerThemable.ProcessThemeDataChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Receive changed theme data, determine its, type and process appropriately
public void ProcessThemeDataChanged(MixedReality.Toolkit.Data.IDataConsumer themeHelper, string resolvedKeyPath, string localKeyPath, object themeValue, MixedReality.Toolkit.Data.DataChangeType dataChangeType);
abstract member ProcessThemeDataChanged : MixedReality.Toolkit.Data.IDataConsumer * string * string * obj * MixedReality.Toolkit.Data.DataChangeType -> unit
Public Sub ProcessThemeDataChanged (themeHelper As IDataConsumer, resolvedKeyPath As String, localKeyPath As String, themeValue As Object, dataChangeType As DataChangeType)
Parameters
- themeHelper
- IDataConsumer
The theme helper data consumer that called this method.
- resolvedKeyPath
- String
Fully resolved keypath for datum that changed.
- localKeyPath
- String
Local keypath for the datum that changed.
- themeValue
- Object
The current value of the theme data.
- dataChangeType
- DataChangeType
The type of change that has occurred.
Remarks
The object can be any of a number of types and loaded accordingly:
- int: Use as index to select Nth entry in ValueToObjectInfo.
- T: Directly use the value to replace the managed variable of that type.
- "resource://[path]": Use path to load a Unity Resource.
- "file://[path]": Use path to load a streaming asset.
- other string: Use string value to find entry by value in ValueToObjectInfo.