MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / SetElementSound

Method SetElementSound

StereoKit/Systems/UI.cs:1416–1417  ·  view source on GitHub ↗

This sets the sound that a particulat UI element will make when you interact with it. One sound when the interaction starts, and one when it ends. The UI element to apply the sounds to. The sound made when the interaction begins. A null sound will fall back to the default sound. The sound made w

(UIVisual visual, Sound activate, Sound deactivate)

Source from the content-addressed store, hash-verified

1414 /// <param name="deactivate">The sound made when the interaction ends.
1415 /// A null sound will fall back to the default sound.</param>
1416 public static void SetElementSound(UIVisual visual, Sound activate, Sound deactivate)
1417 => NativeAPI.ui_set_element_sound(visual, activate?._inst ?? IntPtr.Zero, deactivate?._inst ?? IntPtr.Zero);
1418
1419 /// <summary>This creates a Pose that is friendly towards UI popup
1420 /// windows, or windows that are created due to some type of user

Callers

nothing calls this directly

Calls 1

ui_set_element_soundMethod · 0.80

Tested by

no test coverage detected