VRC SDK
This project aims to completely document the VRChat Unity SDK
|
This behavior modifies an AudioSource when transitioning to the animation state. It can change the audio clip, pitch, or loop value, and it can play the AudioSource. More...
Public Types | |
enum | Order : Enum |
The order in which audio clips are chosen. More... | |
enum | ApplySettings : Enum |
Determines when the settings are applied to the audio source. More... | |
Public Member Functions | |
delegate void | InitializationDelegate (VRC_AnimatorPlayAudio obj) |
delegate void | EnterStateDelegate (VRC_AnimatorPlayAudio control, Animator animator) |
delegate void | ExitStateDelegate (VRC_AnimatorPlayAudio control, Animator animator) |
bool | ShouldApplySetting (ApplySettings setting) |
This is not documented properly yet More... | |
override void | OnStateEnter (Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
This is not documented properly yet More... | |
override void | OnStateExit (Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
This is not documented properly yet More... | |
Public Attributes | |
AudioSource | Source |
The AudioSource to play through. If the AudioSource is not found when transitioning to this state for the first time, AnimatorPlayAudio will be disabled. More... | |
string | SourcePath |
The path to the AudioSource relative to the avatar's root transform. If the AudioSource is not found when transitioning to this state for the first time, AnimatorPlayAudio will be disabled. More... | |
Order | PlaybackOrder |
Determines which audio clip is chosen when transitioning to this state. More... | |
string | ParameterName |
The name of the "int" type avatar parameter that determines which audio clip is chosen. If the parameter cannot be found, the first clip is chosen instead. F:VRC.SDKBase.VRC_AnimatorPlayAudio.Order.Parameter More... | |
Vector2 | Volume = new Vector2(1f, 1f) |
The random volume range for the AudioSource. More... | |
ApplySettings | VolumeApplySettings = ApplySettings.ApplyIfStopped |
How to apply the volume setting More... | |
Vector2 | Pitch = new Vector2(1f, 1f) |
The random pitch range for the AudioSource. More... | |
ApplySettings | PitchApplySettings = ApplySettings.ApplyIfStopped |
How to apply the pitch setting More... | |
AudioClip[] | Clips |
A list of AudioClips that can be applied to the AudioSource when transitioning to this state. More... | |
ApplySettings | ClipsApplySettings = ApplySettings.ApplyIfStopped |
How to apply the clip setting More... | |
bool | Loop |
Whether the AudioSource's looping should be set enabled or disabled when transitioning to this state. More... | |
ApplySettings | LoopApplySettings = ApplySettings.ApplyIfStopped |
How to apply the looping setting More... | |
float | DelayInSeconds |
The delay before "Play On Enter" plays a clip, if enabled. Clamped from 0 to 60 seconds. (Default: 0 seconds) More... | |
bool | PlayOnEnter = true |
To play the audiosource on enter, after possibly stopping it first More... | |
bool | StopOnEnter = true |
To stop the audio source on enter More... | |
bool | PlayOnExit |
To play the audio source on exit More... | |
bool | StopOnExit |
To stop the audio source on exit More... | |
int | playbackIndex |
This is not documented properly yet More... | |
object | destParam |
This is not documented properly yet More... | |
EnterStateDelegate | EnterState |
ExitStateDelegate | ExitState |
Static Public Attributes | |
static InitializationDelegate | Initialize |
Properties | |
bool | ShouldApplyVolume [get] |
This is not documented properly yet More... | |
bool | ShouldApplyPitch [get] |
This is not documented properly yet More... | |
bool | ShouldApplyClip [get] |
This is not documented properly yet More... | |
bool | ShouldApplyLoop [get] |
This is not documented properly yet More... | |
Private Member Functions | |
void | Awake () |
This behavior modifies an AudioSource when transitioning to the animation state. It can change the audio clip, pitch, or loop value, and it can play the AudioSource.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2881 of file VRCSDKBase.cs.
enum VRC.SDKBase.VRC_AnimatorPlayAudio.ApplySettings : Enum |
Determines when the settings are applied to the audio source.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2923 of file VRCSDKBase.cs.
enum VRC.SDKBase.VRC_AnimatorPlayAudio.Order : Enum |
The order in which audio clips are chosen.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2888 of file VRCSDKBase.cs.
|
private |
Definition at line 3115 of file VRCSDKBase.cs.
delegate void VRC.SDKBase.VRC_AnimatorPlayAudio.EnterStateDelegate | ( | VRC_AnimatorPlayAudio | control, |
Animator | animator | ||
) |
delegate void VRC.SDKBase.VRC_AnimatorPlayAudio.ExitStateDelegate | ( | VRC_AnimatorPlayAudio | control, |
Animator | animator | ||
) |
delegate void VRC.SDKBase.VRC_AnimatorPlayAudio.InitializationDelegate | ( | VRC_AnimatorPlayAudio | obj | ) |
override void VRC.SDKBase.VRC_AnimatorPlayAudio.OnStateEnter | ( | Animator | animator, |
AnimatorStateInfo | stateInfo, | ||
int | layerIndex | ||
) |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3127 of file VRCSDKBase.cs.
override void VRC.SDKBase.VRC_AnimatorPlayAudio.OnStateExit | ( | Animator | animator, |
AnimatorStateInfo | stateInfo, | ||
int | layerIndex | ||
) |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3136 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.ShouldApplySetting | ( | ApplySettings | setting | ) |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3105 of file VRCSDKBase.cs.
AudioClip [] VRC.SDKBase.VRC_AnimatorPlayAudio.Clips |
A list of AudioClips that can be applied to the AudioSource when transitioning to this state.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3010 of file VRCSDKBase.cs.
ApplySettings VRC.SDKBase.VRC_AnimatorPlayAudio.ClipsApplySettings = ApplySettings.ApplyIfStopped |
How to apply the clip setting
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3015 of file VRCSDKBase.cs.
float VRC.SDKBase.VRC_AnimatorPlayAudio.DelayInSeconds |
The delay before "Play On Enter" plays a clip, if enabled. Clamped from 0 to 60 seconds. (Default: 0 seconds)
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3031 of file VRCSDKBase.cs.
object VRC.SDKBase.VRC_AnimatorPlayAudio.destParam |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3066 of file VRCSDKBase.cs.
EnterStateDelegate VRC.SDKBase.VRC_AnimatorPlayAudio.EnterState |
Definition at line 3072 of file VRCSDKBase.cs.
ExitStateDelegate VRC.SDKBase.VRC_AnimatorPlayAudio.ExitState |
Definition at line 3075 of file VRCSDKBase.cs.
|
static |
Definition at line 3069 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.Loop |
Whether the AudioSource's looping should be set enabled or disabled when transitioning to this state.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3021 of file VRCSDKBase.cs.
ApplySettings VRC.SDKBase.VRC_AnimatorPlayAudio.LoopApplySettings = ApplySettings.ApplyIfStopped |
How to apply the looping setting
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3026 of file VRCSDKBase.cs.
string VRC.SDKBase.VRC_AnimatorPlayAudio.ParameterName |
The name of the "int" type avatar parameter that determines which audio clip is chosen. If the parameter cannot be found, the first clip is chosen instead. F:VRC.SDKBase.VRC_AnimatorPlayAudio.Order.Parameter
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2981 of file VRCSDKBase.cs.
Vector2 VRC.SDKBase.VRC_AnimatorPlayAudio.Pitch = new Vector2(1f, 1f) |
The random pitch range for the AudioSource.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3000 of file VRCSDKBase.cs.
ApplySettings VRC.SDKBase.VRC_AnimatorPlayAudio.PitchApplySettings = ApplySettings.ApplyIfStopped |
How to apply the pitch setting
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3005 of file VRCSDKBase.cs.
int VRC.SDKBase.VRC_AnimatorPlayAudio.playbackIndex |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3059 of file VRCSDKBase.cs.
Order VRC.SDKBase.VRC_AnimatorPlayAudio.PlaybackOrder |
Determines which audio clip is chosen when transitioning to this state.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2975 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.PlayOnEnter = true |
To play the audiosource on enter, after possibly stopping it first
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3036 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.PlayOnExit |
To play the audio source on exit
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3047 of file VRCSDKBase.cs.
AudioSource VRC.SDKBase.VRC_AnimatorPlayAudio.Source |
The AudioSource to play through. If the AudioSource is not found when transitioning to this state for the first time, AnimatorPlayAudio will be disabled.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2959 of file VRCSDKBase.cs.
string VRC.SDKBase.VRC_AnimatorPlayAudio.SourcePath |
The path to the AudioSource relative to the avatar's root transform. If the AudioSource is not found when transitioning to this state for the first time, AnimatorPlayAudio will be disabled.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2968 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.StopOnEnter = true |
To stop the audio source on enter
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3041 of file VRCSDKBase.cs.
bool VRC.SDKBase.VRC_AnimatorPlayAudio.StopOnExit |
To stop the audio source on exit
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3052 of file VRCSDKBase.cs.
Vector2 VRC.SDKBase.VRC_AnimatorPlayAudio.Volume = new Vector2(1f, 1f) |
The random volume range for the AudioSource.
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2988 of file VRCSDKBase.cs.
ApplySettings VRC.SDKBase.VRC_AnimatorPlayAudio.VolumeApplySettings = ApplySettings.ApplyIfStopped |
How to apply the volume setting
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 2993 of file VRCSDKBase.cs.
|
get |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3093 of file VRCSDKBase.cs.
|
get |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3099 of file VRCSDKBase.cs.
|
get |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3087 of file VRCSDKBase.cs.
|
get |
This is not documented properly yet
<incomplete >
Check the VRChat documentation for more information.
Docs generated by the VRChat SDK Documentation Project.
Definition at line 3081 of file VRCSDKBase.cs.