API reference
API reference
Select your platform
No SDKs available
No versions available

HandGrabGlow Class

Extends MonoBehaviour
HandGrabGlow controls the glow properties of the OculusHand material to get a glow effect when pinch / palm grabbing objects depending on the per finger pinch / palm strength.
To achive the glow effect, it also generates a custom UV channel and using the joints in the hand visual component adds per finger mask information.

Member Enumerations

Enumeration GlowType

Fill
= 27
Outline
= 28
Both
= 29

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

void InjectAllHandGrabGlow
( IHandGrabInteractor handGrabInteractor,
SkinnedMeshRenderer handRenderer,
HandVisual handVisual,
Color grabbingColor,
Color hoverColor,
float colorChangeSpeed,
float fadeStartTime,
float glowStrengthChangeSpeed,
bool fadeOut,
float gradientLength,
GlowType glowType )
void InjectHandGrabInteractor
( IHandGrabInteractor handGrabInteractor )
void InjectHandRenderer
( SkinnedMeshRenderer handRenderer )
void InjectMaterialPropertyBlockEditor
( MaterialPropertyBlockEditor materialEditor )
void InjectHandVisual
( HandVisual handVisual )
void InjectGlowColors
( Color grabbingColor,
Color hoverColor )
void InjectVisualChangeSpeed
( float colorChangeSpeed,
float fadeStartTime,
float glowStrengthChangeSpeed )
void InjectFadeOut
( bool fadeOut )
Parameters
gradientLength
Clamped 0.0 to 1.0
void InjectGlowType
( GlowType glowType )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon