API reference
API reference
Select your platform
No SDKs available
No versions available

DataSource Class

Extends MonoBehaviour
Base class for most concrete IDataSource types.
Conceptually, any type which produces data can be an IDataSource for that data type, but in practice usage is more constrained (though still pervasive throughout the Interaction SDK). Descendent types of this DataSource implementation specifically are also MonoBehaviours; thus, the expectation for descendent types is that they will be long-lived instances which persistently provide data over a period of time, on a schedule specified by UpdateModeFlags but typically tied in some way into MonoBehaviour's built-in update capabilites.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Input.DataSource< TData >._started
UpdateModeAfterPrevious : bool
Signature
bool Oculus.Interaction.Input.DataSource< TData >.UpdateModeAfterPrevious

Fields

CurrentDataVersion : int
Implementation of IDataSource.CurrentDataVersion; for details, please refer to the related documentation provided for that interface.
Signature
virtual int Oculus.Interaction.Input.DataSource< TData >.CurrentDataVersion
Started : bool
Indicates whether or not the MonoBehaviour start-up process has completed for this instance.
Signature
bool Oculus.Interaction.Input.DataSource< TData >.Started
UpdateMode : UpdateModeFlags
Returns the UpdateModeFlags specifying the circumstances under which the data contained in this instance will be updated.
Signature
UpdateModeFlags Oculus.Interaction.Input.DataSource< TData >.UpdateMode

Protected Properties

DataAsset : abstract TData
[Get]
Returns the current DataAsset, without performing any updates.
Signature
abstract TData Oculus.Interaction.Input.DataSource< TData >.DataAsset

Events

InputDataAvailable : Action
Implementation of IDataSource.InputDataAvailable; for details, please refer to the related documentation provided for that interface.
Signature
Action Oculus.Interaction.Input.DataSource< TData >.InputDataAvailable

Protected Methods

FixedUpdate ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.FixedUpdate()
Returns
void
LateUpdate ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.LateUpdate()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.OnEnable()
Returns
void
RequiresUpdate ()
Signature
bool Oculus.Interaction.Input.DataSource< TData >.RequiresUpdate()
Returns
bool
ResetUpdateAfter ( updateAfter , updateMode )
Signature
void Oculus.Interaction.Input.DataSource< TData >.ResetUpdateAfter(IDataSource updateAfter, UpdateModeFlags updateMode)
Parameters
updateAfter: IDataSource
updateMode: UpdateModeFlags
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.Update()
Returns
void
UpdateData ()
Signature
abstract void Oculus.Interaction.Input.DataSource< TData >.UpdateData()
Returns
abstract void

Methods

GetData ()
Implementation of IDataSource<TData>.GetData; for details, please refer to the related documentation provided for that interface.
Signature
TData Oculus.Interaction.Input.DataSource< TData >.GetData()
Returns
TData
InjectAllDataSource ( updateMode , updateAfter )
Injects all required dependencies for a dynamically instantiated DataSource; effectively wraps InjectUpdateMode(UpdateModeFlags) and InjectUpdateAfter(IDataSource).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.Input.DataSource< TData >.InjectAllDataSource(UpdateModeFlags updateMode, IDataSource updateAfter)
Parameters
updateMode: UpdateModeFlags
updateAfter: IDataSource
Returns
void
InjectUpdateAfter ( updateAfter )
Sets the IDataSource to update after for 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 Oculus.Interaction.Input.DataSource< TData >.InjectUpdateAfter(IDataSource updateAfter)
Parameters
updateAfter: IDataSource
Returns
void
InjectUpdateMode ( updateMode )
Sets the UpdateModeFlags for 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 Oculus.Interaction.Input.DataSource< TData >.InjectUpdateMode(UpdateModeFlags updateMode)
Parameters
updateMode: UpdateModeFlags
Returns
void
MarkInputDataRequiresUpdate ()
Implementation of IDataSource.MarkInputDataRequiresUpdate; for details, please refer to the related documentation provided for that interface.
Signature
virtual void Oculus.Interaction.Input.DataSource< TData >.MarkInputDataRequiresUpdate()
Returns
void