DataConsumerThemeHelper.ProcessDataChanged 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 object, determine its, type and process appropriately
protected override void ProcessDataChanged(MixedReality.Toolkit.Data.IDataSource dataSource, string resolvedKeyPath, string localKeyPath, object inValue, MixedReality.Toolkit.Data.DataChangeType dataChangeType);
override this.ProcessDataChanged : MixedReality.Toolkit.Data.IDataSource * string * string * obj * MixedReality.Toolkit.Data.DataChangeType -> unit
Protected Overrides Sub ProcessDataChanged (dataSource As IDataSource, resolvedKeyPath As String, localKeyPath As String, inValue As Object, dataChangeType As DataChangeType)
Parameters
- dataSource
- IDataSource
Which data source called this method.
- resolvedKeyPath
- String
Fully resolved keypath for datum that changed.
- localKeyPath
- String
Local keypath for the datum that changed.
- inValue
- Object
The current value of the 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.