Class XRTintInteractableVisual
Simple Interactable Visual component that demonstrates hover or selection state with emissive tinting. Note: requires use of a shader that supports emission (such as Standard shader).
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public class XRTintInteractableVisual : MonoBehaviour
Properties
tintColor
Gets or sets the tint color for interactable.
Declaration
public Color tintColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
tintOnHover
Gets or sets whether this should tint on hover.
Declaration
public bool tintOnHover { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
tintOnSelection
Gets or sets whether this should tint on selection.
Declaration
public bool tintOnSelection { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
tintRenderers
Gets or sets the tint renderer(s).
Declaration
public List<Renderer> tintRenderers { get; set; }
Property Value
Type | Description |
---|---|
List<Renderer> |
Methods
SetTint(Boolean)
Declaration
protected virtual void SetTint(bool on)
Parameters
Type | Name | Description |
---|---|---|
Boolean | on |