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

ICopyFrom Interface

Curiously-recurring generic interface indicating that the implementing type is capable of copying data from other instances of the same type.
Because the curiously-recurring pattern requires the concrete type to be known in order to express the interface (i.e., ICopyFrom<Foo> cannot be written without knowledge of the type Foo), this interface is only used within other generic types where TSelfType is in turn generic. For a canonical example, see DataModifier<TData>.

Methods

CopyFrom ( source )
Copies data from source to the current ICopyFrom instance.
For a canonical example, see HmdDataAsset.
Signature
void Oculus.Interaction.Input.ICopyFrom< in in TSelfType >.CopyFrom(TSelfType source)
Parameters
source: TSelfType
Returns
void