Language
Edit

DataConsumerThemableBase<T>.ProcessDataChanged Method

Definition

Receive changed object, determine its, type and process appropriately

protected override void ProcessDataChanged(MixedReality.Toolkit.Data.IDataSource dataSource, string resolvedKeyPath, string localKeyPath, object inDataOrThemeValue, 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, inDataOrThemeValue 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.

inDataOrThemeValue
Object

The current data or theme value.

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.

Applies to