Tanoda
SimpleInteractionGlow Class Reference

This simple script changes the color of an InteractionBehaviour as a function of its distance to the palm of the closest hand that is hovering nearby. More...

Inheritance diagram for SimpleInteractionGlow:

Public Attributes

bool useHover = true
 
bool usePrimaryHover = false
 
Color defaultColor = Color.Lerp(Color.black, Color.white, 0.1F)
 
Color suspendedColor = Color.red
 
Color hoverColor = Color.Lerp(Color.black, Color.white, 0.7F)
 
Color primaryHoverColor = Color.Lerp(Color.black, Color.white, 0.8F)
 
Color pressedColor = Color.white
 

Detailed Description

This simple script changes the color of an InteractionBehaviour as a function of its distance to the palm of the closest hand that is hovering nearby.

Definition at line 22 of file SimpleInteractionGlow.cs.

Member Data Documentation

◆ defaultColor

Color SimpleInteractionGlow.defaultColor = Color.Lerp(Color.black, Color.white, 0.1F)

Definition at line 31 of file SimpleInteractionGlow.cs.

◆ hoverColor

Color SimpleInteractionGlow.hoverColor = Color.Lerp(Color.black, Color.white, 0.7F)

Definition at line 33 of file SimpleInteractionGlow.cs.

◆ pressedColor

Color SimpleInteractionGlow.pressedColor = Color.white

Definition at line 38 of file SimpleInteractionGlow.cs.

◆ primaryHoverColor

Color SimpleInteractionGlow.primaryHoverColor = Color.Lerp(Color.black, Color.white, 0.8F)

Definition at line 34 of file SimpleInteractionGlow.cs.

◆ suspendedColor

Color SimpleInteractionGlow.suspendedColor = Color.red

Definition at line 32 of file SimpleInteractionGlow.cs.

◆ useHover

bool SimpleInteractionGlow.useHover = true

Definition at line 25 of file SimpleInteractionGlow.cs.

◆ usePrimaryHover

bool SimpleInteractionGlow.usePrimaryHover = false

Definition at line 28 of file SimpleInteractionGlow.cs.


The documentation for this class was generated from the following file: