Class VisionOSHoverEffect
Acts as a direct proxy to RealityKit's HoverEffectComponent. To function, the GO must also have a MeshRenderer (to display the hover effect on) and a Collider (against which the view ray can intersect).
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.PolySpatial
Assembly: Unity.PolySpatial.dll
Syntax
[DisallowMultipleComponent]
public class VisionOSHoverEffect : MonoBehaviour
Properties
Color
The color of the effect, when using the Spotlight or Highlight types.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
FadeInDuration
The duration in seconds over which the effect fades in, when using the Shader type.
Declaration
public float FadeInDuration { get; set; }
Property Value
Type | Description |
---|---|
float |
FadeOutDuration
The duration in seconds over which the effect fades out, when using the Shader type.
Declaration
public float FadeOutDuration { get; set; }
Property Value
Type | Description |
---|---|
float |
IntensityMultiplier
The intensity of the effect, when using the Spotlight or Highlight types.
Declaration
public float IntensityMultiplier { get; set; }
Property Value
Type | Description |
---|---|
float |
Type
The type of hover effect to use.
Declaration
public VisionOSHoverEffect.EffectType Type { get; set; }
Property Value
Type | Description |
---|---|
VisionOSHoverEffect.EffectType |