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
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
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)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
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 |