/// <summary>
 /// Sets the Spatial Sound room size.
 /// </summary>
 /// <param name="audioSource">The AudioSource on which the room size will be set.</param>
 /// <param name="room">The desired room size.</param>
 public static void SetRoomSize(AudioSource audioSource, SpatialSoundRoomSizes room)
 {
     SetParameter(audioSource, SpatialSoundParameters.RoomSize, (float)room);
 }
示例#2
0
 /// <summary>
 /// Sets the Spatial Sound room size.
 /// </summary>
 /// <param name="audioSource">The AudioSource on which the room size will be set.</param>
 /// <param name="room">The desired room size.</param>
 public static void SetRoomSize(AudioSource audioSource, SpatialSoundRoomSizes room)
 {
     SetParameter(audioSource, SpatialSoundParameters.RoomSize, (float)room);
 }