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.

NOTE: Hovering state changes on VRChat's interaction highlights will override the current state of the highlight set from Udon and vice versa.

// 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);