Class Doorbell
The component plays the notify sound when the player joins the world.
Inheritance
System.Object
Doorbell
Namespace: black.kit.toybox
Assembly: cs.temp.dll.dll
Syntax
public sealed class Doorbell : UdonSharpBehaviour
Remarks
Usage (in the inspector of Unity Editor):
- Add this component or prefab to the scene.
- Specify the audio source to play the notify sound.
Fields
NAME_SOURCE
The property name of the AudioSource component.
Declaration
public const string NAME_SOURCE = ""
Field Value
Type | Description |
---|---|
System.String |
Methods
OnPlayerJoined(VRCPlayerApi)
Play the notify sound when the player joins the world.
Declaration
public override void OnPlayerJoined(VRCPlayerApi player)
Parameters
Type | Name | Description |
---|---|---|
VRCPlayerApi | player | The player who joined the world. |