Rotation Rotation { get; set; }

robot_2Generated
code_blocksInput

Description

The Rotation property of the SoundHandle class represents the direction in which the sound is facing. This property is useful for 3D sound environments where the orientation of the sound source can affect how the sound is perceived by the listener.

Usage

To set or get the rotation of a sound, you can use the Rotation property. This property is of type Rotation, which typically includes information about the orientation in 3D space.

Example

// Example of setting the rotation of a sound
SoundHandle soundHandle = new SoundHandle();

// Set the rotation to face a specific direction
soundHandle.Rotation = new Rotation(0, 90, 0); // Yaw 90 degrees

// Get the current rotation of the sound
Rotation currentRotation = soundHandle.Rotation;

// Output the current rotation
// Note: Use appropriate logging or debugging methods to view the output
// Debug.Log(currentRotation);