Click or drag to resize

POITooltip Class

Encapsulates most of the tooltip functionality with exposed serialised data that can be set in Editor
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDK.UITooltipBase
            ImmerseSDK.UITooltip
              ImmerseSDK.UIPOITooltip

Namespace:  ImmerseSDK.UI
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class POITooltip : Tooltip

The POITooltip type exposes the following members.

Constructors
  NameDescription
Public methodPOITooltip
Initializes a new instance of the POITooltip class
Top
Methods
Fields
  NameDescription
Private field_animator
Animator to use for animation. If this isn't set, the component will look for an Animator on the same GameObject, and if not found, it will not play animations.
Private field_arrowTransform
Transform of the Arrow object so we can move the canvas slightly when we scale up and down to keep it pointing at the correct location
Private field_hideTriggerParameterName
The trigger parameter in the animation state machine
Private field_maxDistanceInMeters
Maximum distance in meters for tooltip to show
Private field_maxDistanceInMetersForTooltip
Maximum distance in meters for arrow to show
Private field_minDistanceInMeters
Minimum distance in meters
Private field_showArrowTriggerParameterName
The trigger parameter in the animation state machine
Private field_showTooltipTriggerParameterName
The trigger parameter in the animation state machine
Private field_sizeScalarAtMaxDistance
Scalar to either reduce or enlarge the size of the tooltip the further away it gets from the min distance. A value of 1.0f keeps it at the same size up to max distance. A value of 0.9f will use 90% of the size at max distance, and 100% of the size at min distance.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also