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

Method SetElementColor

StereoKit/Systems/UI.cs:1405–1406  ·  view source on GitHub ↗

This allows you to override the color category that a UI element is assigned to. The UI element type to set the color category of. The category of color to assign to this UI element. Use UI.SetThemeColor in combination with this to assign a specific color.

(UIVisual visual, UIColor colorCategory)

Source from the content-addressed store, hash-verified

1403 /// UI element. Use UI.SetThemeColor in combination with this to assign
1404 /// a specific color.</param>
1405 public static void SetElementColor(UIVisual visual, UIColor colorCategory)
1406 => NativeAPI.ui_set_element_color(visual, colorCategory);
1407
1408 /// <summary>This sets the sound that a particulat UI element will make
1409 /// when you interact with it. One sound when the interaction starts,

Callers

nothing calls this directly

Calls 1

ui_set_element_colorMethod · 0.80

Tested by

no test coverage detected