Skip to main content

Highlighting Objects from Udon

If you are looking for a way to draw the user's attention to certain objects in your world, you can use the VRChat's native highlighting feature to set the highlighted state of any object or renderer.

 

// Highlights a GameObject using any renderer on the object if one exists
VRC.SDKBase.InputManager.EnableObjectHighlight(GameObject obj, bool enabled);

// Highlights a Renderer
VRC.SDKBase.InputManager.EnableObjectHighlight(Renderer r, bool enabled);