_iModifyDataFromSourceMono
: UnityEngine.Object |
Signature
UnityEngine.Object _iModifyDataFromSourceMono |
DataAsset
: override TData
[Get] |
Signature
override TData DataAsset |
CurrentDataVersion
: override int
[Get] |
Implementation of IDataSource.CurrentDataVersion; for details, please refer to the related documentation provided for that interface.
Signature
override int CurrentDataVersion |
ModifyDataFromSource
: IDataSource< TData >
[Get] |
Returns the IDataSource<TData> from which this DataModifier retrieves the TData it modifies.
This source is typically set through the Unity Editor, but it can also be set programmatically using InjectModifyDataFromSource(IDataSource<TData>).
Signature
virtual IDataSource<TData> ModifyDataFromSource |
Apply
(
data
)
|
Signature
abstract void Apply(TData data) Parameters data: TDataReturns abstract void |
Start
()
|
Signature
override void Start() Returns override void |
UpdateData
()
|
Signature
override void UpdateData() Returns override void |
InjectAllDataModifier
(
updateMode
, updateAfter
, modifyDataFromSource
, applyModifier
)
|
Injects all required dependencies for a dynamically instantiated DataModifier; effectively wraps DataSource<TData>.InjectAllDataSource(DataSource<TData>.UpdateModeFlags, IDataSource), InjectModifyDataFromSource(IDataSource<TData>), and InjectApplyModifier(bool).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void InjectAllDataModifier(UpdateModeFlags updateMode, IDataSource updateAfter, IDataSource< TData > modifyDataFromSource, bool applyModifier) Parameters updateMode: UpdateModeFlagsupdateAfter: IDataSourcemodifyDataFromSource: IDataSource< TData >applyModifier: boolReturns void |
InjectApplyModifier
(
applyModifier
)
|
Sets whether or not to apply modification on a dynamically instantiated DataSource.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void InjectApplyModifier(bool applyModifier) Parameters applyModifier: boolReturns void |
InjectModifyDataFromSource
(
modifyDataFromSource
)
|
Sets the IDataSource<TData> for unmodified data on a dynamically instantiated DataModifier.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void InjectModifyDataFromSource(IDataSource< TData > modifyDataFromSource) Parameters modifyDataFromSource: IDataSource< TData >Returns void |
ResetSources
(
modifyDataFromSource
, updateAfter
, updateMode
)
|
Changes the source from which this modifier retrieves the data it modifies, the source for updates, and the DataSource<TData>.UpdateModeFlags.
Typically, the same value is passed as both modifyDataFromSource and updateAfter so that the modifier is updated whenever and immediately after the source from which it retrieves the unmodified data acquires new data to modify.
Signature
void ResetSources(IDataSource< TData > modifyDataFromSource, IDataSource updateAfter, UpdateModeFlags updateMode) Parameters modifyDataFromSource: IDataSource< TData >
The source from which this modifier retrieves the data it modifies
updateMode: UpdateModeFlags
The DataSource<TData>.UpdateModeFlags to use from now on
Returns void |