void ClearParent()

robot_2Generated
code_blocksInput

Description

The ClearParent method of the SoundHandle class is used to detach the sound from its parent object. This stops the sound from following the parent, meaning it will no longer update its position or orientation based on the parent's transformations.

Usage

To use the ClearParent method, simply call it on an instance of SoundHandle when you want the sound to stop following its parent. This is useful in scenarios where you want the sound to remain at its current position regardless of the parent's movement.

Example

// Assuming 'sound' is an instance of SoundHandle
sound.ClearParent();

// After calling ClearParent, the sound will no longer follow its parent.