Description
The ClearParent
method is used to detach the SoundHandle
from its parent, effectively stopping it from following the parent's position and orientation. This can be useful when you want the sound to remain at its current location, regardless of any further movement of the parent object.
Usage
Call this method on a SoundHandle
instance when you want to stop the sound from following its parent. This is particularly useful in scenarios where the sound should remain stationary or when the parent object is no longer relevant to the sound's position.
Example
// Example of using ClearParent
SoundHandle soundHandle = new SoundHandle();
// Assume the sound is currently following a parent
soundHandle.ClearParent();
// The sound will now remain at its current position and will not follow the parent anymore.