Language
Edit

DataConsumerCollection.ProcessDataChanged Method

Definition

An associated data source is reporting that data has changed.

protected override void ProcessDataChanged(MixedReality.Toolkit.Data.IDataSource dataSource, string resolvedKeyPath, string collectionLocalKeypath, object itemIdentifier, 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, collectionLocalKeypath As String, itemIdentifier As Object, dataChangeType As DataChangeType)

Parameters

dataSource
IDataSource

The data source reporting a data change in the collection.

resolvedKeyPath
String

Fully resolved key path after key mapping and disambiguating any parent collections.

collectionLocalKeypath
String

the originally provided local key path, usually the one provided in the Unity inspector.

itemIdentifier
Object

An object that represents the changed collection or item in the collection, typically its index.

dataChangeType
DataChangeType

The nature of the data change, either at collection level or individual item level.

Remarks

The only key path typically reported is the keypath provided by AddVariableKeyPathsForComponent(Component), which is the key path of the collection itself in the data source.

Applies to