justin
New Member
Posts: 20
Posts: 20
|
Post by justin on Oct 11, 2020 20:34:04 GMT
I'm using Oculus' Haptic tool and I need to feed it an AudioClip so that it plays haptics based on the audio clip. Is it possible to grab an AudioClip from a SoundGroup without having to actually play the sound? I'm looking for something like MasterAudio.GetAudioClip(<soundgroup>).
Thank you.
|
|
|
Post by DarkTonic Dev on Oct 11, 2020 21:40:10 GMT
If you just played the sound, you can do this:
var result = MasterAudio.PlaySound3DFollowTransform("SoundGroupName", this.transform); if (result.ActingVariation != null) { var clip = result.ActingVariation.VarAudio.clip; // do something with it. }
|
|
justin
New Member
Posts: 20
Posts: 20
|
Post by justin on Oct 11, 2020 21:48:37 GMT
Thank you!
|
|
|
Post by DarkTonic Dev on Oct 11, 2020 22:16:26 GMT
No problem.
|
|