static UMetaXRHapticsPlayerComponent * | SpawnHapticsPlayerComponent ( AActor * ActorToAttachTo, UMetaXRHapticClip * HapticClip, const EMetaXRHapticController Controller, const int32 Priority, const float Amplitude, const float FrequencyShift, const bool bIsLooping ) |
| static UMetaXRHapticsPlayerComponent * UMetaXRHapticsFunctionLibrary::SpawnHapticsPlayerComponent ( AActor * ActorToAttachTo, UMetaXRHapticClip * HapticClip, const EMetaXRHapticController Controller, const int32 Priority, const float Amplitude, const float FrequencyShift, const bool bIsLooping ) |
|---|
Spawns a UMetaXRHapticsPlayerComponent and attaches it to an Actor. Always spawn new player components with this method, Unreal's built-in "Add Haptics SDK Player" will lead to initialization errors. When playback finishes, the component will not automatically destroy itself. Parameters ActorToAttachTo Actor to which this component will be attached to. HapticClipHaptic clip to load. ControllerController used to play haptics. PriorityPlayback priority, ranging from 0 (low priority) to 1024 (high priority). AmplitudeAmplitude scale, ranging from 0.0 to infinite. FrequencyShiftFrequency shift, ranging from -1.0 to 1.0. bIsLoopingWhether playback should loop. Returns A UMetaXRHapticsPlayerComponent that plays back the haptic clip, and can be used to control playback. |