Skip to content

Commit

Permalink
Fix default audio configuration
Browse files Browse the repository at this point in the history
`avatarAudioNearRadius` was incorrectly set to 40, this has been corrected based on the official documentation and the default is now 0
  • Loading branch information
Varneon committed Feb 21, 2025
1 parent ebff7d0 commit 959bc9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6719805310668053699}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6719805310668053693
MonoBehaviour:
Expand Down Expand Up @@ -59,13 +60,15 @@ MonoBehaviour:
strafeSpeed: 2
jumpImpulse: 3
gravityStrength: 1
overridePlayerVoices: 1
voiceGain: 15
voiceDistanceNear: 0
voiceDistanceFar: 25
voiceVolumetricRadius: 0
voiceLowpass: 1
overrideAvatarAudio: 1
avatarAudioGain: 10
avatarAudioNearRadius: 40
avatarAudioNearRadius: 0
avatarAudioFarRadius: 40
avatarAudioVolumetricRadius: 0
avatarAudioForceSpatial: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public class SimplePlayerSettings : UdonSharpBehaviour
[FieldDisable(nameof(overrideAvatarAudio))]
[Tooltip("In Meters, Range is not limited\n\nThis sets the maximum start of the range for hearing the avatar's audio. You can lower this to make another player's avatar not travel as far, all the way to 0 to effectively 'mute' the player. Note that this is compared to the audio source's minDistance, and the smaller value is used.")]
[FieldLabel("Near Radius")]
private float avatarAudioNearRadius = 40f;
private float avatarAudioNearRadius = 0f;

/// <summary>
/// <see href="https://creators.vrchat.com/worlds/udon/players/player-audio#setavataraudiofarradius"/>
Expand Down

0 comments on commit 959bc9d

Please sign in to comment.