uPano  v3.1
InfinityCode.uPano.HotSpots.HotSpot Class Reference

Interactive GameObject, which is automatically positioned on the panorama with pan and tilt More...

Inheritance diagram for InfinityCode.uPano.HotSpots.HotSpot:
InfinityCode.uPano.InteractiveElements.PrefabElement InfinityCode.uPano.InteractiveElements.IScalableElement InfinityCode.uPano.InteractiveElements.InteractiveElement

Public Types

enum  TooltipAction
 Enumeration of actions to show the tooltip More...
 

Public Member Functions

override void Destroy ()
 Destroys current HotSpot More...
 
override void GetPanTilt (out float pan, out float tilt)
 Gets the pan and tilt of an interactive element More...
 
Vector2 GetScreenPosition (Camera camera=null)
 Gets the screen position of HotSpot More...
 
override void InitQuickActions (GameObject target)
 Initiates quick actions More...
 
override void Reinit ()
 Reinitializes an interactive element More...
 
override void SetPanTilt (float pan, float tilt)
 Sets pan and tilt for an interactive element More...
 
void UpdatePosition ()
 Updates position of HotSpot More...
 
- Public Member Functions inherited from InfinityCode.uPano.InteractiveElements.InteractiveElement
GetRuntimeField< T > (string key)
 Gets user value for the key and cast to the specified type More...
 

Public Attributes

string tooltip
 Tooltip when hovering over a hot spot More...
 
TooltipAction tooltipAction
 The action used to display the tooltip More...
 
GameObject tooltipPrefab
 Tooltip prefab More...
 
- Public Attributes inherited from InfinityCode.uPano.InteractiveElements.InteractiveElement
InteractiveElementEvent OnClick = new InteractiveElementEvent()
 Event that occurs when click Interactive Element More...
 
InteractiveElementEvent OnPointerDown = new InteractiveElementEvent()
 Event that occurs when press Interactive Element More...
 
InteractiveElementEvent OnPointerUp = new InteractiveElementEvent()
 Event that occurs when release Interactive Element More...
 
InteractiveElementEvent OnPointerEnter = new InteractiveElementEvent()
 Event that occurs when cursor enter on Interactive Element More...
 
InteractiveElementEvent OnPointerExit = new InteractiveElementEvent()
 Event that occurs when cursor exit from Interactive Element More...
 
bool ignoreGlobalActions = false
 Should the element ignore global actions? More...
 
GameObject loadPanoramaPrefab
 Prefab of panorama that should be instantiated and opened when you click on an element More...
 
GameObject switchToPanorama
 Panorama that should be opened when you click on an element More...
 
bool copyPanTilt = true
 Copy pan and tilt from source to target panorama More...
 
GameObject beforeTransitionPrefab
 Prefab which contains the transition that is played before the panorama is closed More...
 
GameObject afterTransitionPrefab
 Prefab which contains the transition that is played after the panorama is closed More...
 

Properties

float distanceMultiplier [get, set]
 The multiplier of distance from the center of the panorama to the world position of HotSpot. More...
 
float pan [get, set]
 Pan More...
 
float tilt [get, set]
 Tilt More...
 
Vector3 scale [get, set]
 Scale More...
 
Quaternion rotation [get, set]
 Rotation More...
 
override GameObject prefab [get, set]
 Prefab More...
 
HotSpotInstance instance [get]
 Reference to instance of HotSpot More...
 
HotSpotManager manager [get]
 Reference to HotSpot manager More...
 
Vector3 screenPosition [get]
 Gets the screen position of HotSpot More...
 
Vector3 worldPosition [get]
 Gets the world position of HotSpot More...
 
- Properties inherited from InfinityCode.uPano.InteractiveElements.PrefabElement
abstract GameObject prefab [get, set]
 Get / set a prefab More...
 
- Properties inherited from InfinityCode.uPano.InteractiveElements.InteractiveElement
Pano pano [get, set]
 Reference to instance of a panorama More...
 
object this[string key] [get, set]
 Gets and sets the user value to be stored in an element More...
 
virtual string title [get, set]
 Title More...
 
virtual bool visible [get, set]
 Visible More...
 
- Properties inherited from InfinityCode.uPano.InteractiveElements.IScalableElement
Vector3 scale [get, set]
 Gets and sets the scale of interactive element More...
 

Detailed Description

Interactive GameObject, which is automatically positioned on the panorama with pan and tilt

Member Enumeration Documentation

◆ TooltipAction

Enumeration of actions to show the tooltip

Member Function Documentation

◆ Destroy()

override void InfinityCode.uPano.HotSpots.HotSpot.Destroy ( )
virtual

◆ GetPanTilt()

override void InfinityCode.uPano.HotSpots.HotSpot.GetPanTilt ( out float  pan,
out float  tilt 
)
virtual

Gets the pan and tilt of an interactive element

Parameters
panPan
tiltTilt

Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.

◆ GetScreenPosition()

Vector2 InfinityCode.uPano.HotSpots.HotSpot.GetScreenPosition ( Camera  camera = null)

Gets the screen position of HotSpot

Parameters
cameraCamera
Returns
Screen position of HotSpot

◆ InitQuickActions()

override void InfinityCode.uPano.HotSpots.HotSpot.InitQuickActions ( GameObject  target)
virtual

Initiates quick actions

Parameters
targetThe container that will contain the Quick Actions components

Reimplemented from InfinityCode.uPano.InteractiveElements.InteractiveElement.

◆ Reinit()

override void InfinityCode.uPano.HotSpots.HotSpot.Reinit ( )
virtual

Reinitializes an interactive element

Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.

◆ SetPanTilt()

override void InfinityCode.uPano.HotSpots.HotSpot.SetPanTilt ( float  pan,
float  tilt 
)
virtual

Sets pan and tilt for an interactive element

Parameters
panNew pan
tiltNew tilt

Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.

◆ UpdatePosition()

void InfinityCode.uPano.HotSpots.HotSpot.UpdatePosition ( )

Updates position of HotSpot

Member Data Documentation

◆ tooltip

string InfinityCode.uPano.HotSpots.HotSpot.tooltip

Tooltip when hovering over a hot spot

◆ tooltipAction

TooltipAction InfinityCode.uPano.HotSpots.HotSpot.tooltipAction

The action used to display the tooltip

◆ tooltipPrefab

GameObject InfinityCode.uPano.HotSpots.HotSpot.tooltipPrefab

Tooltip prefab

Property Documentation

◆ distanceMultiplier

float InfinityCode.uPano.HotSpots.HotSpot.distanceMultiplier
getset

The multiplier of distance from the center of the panorama to the world position of HotSpot.

◆ instance

HotSpotInstance InfinityCode.uPano.HotSpots.HotSpot.instance
get

Reference to instance of HotSpot

◆ manager

HotSpotManager InfinityCode.uPano.HotSpots.HotSpot.manager
get

Reference to HotSpot manager

◆ pan

float InfinityCode.uPano.HotSpots.HotSpot.pan
getset

Pan

◆ prefab

override GameObject InfinityCode.uPano.HotSpots.HotSpot.prefab
getset

Prefab

◆ rotation

Quaternion InfinityCode.uPano.HotSpots.HotSpot.rotation
getset

Rotation

◆ scale

Vector3 InfinityCode.uPano.HotSpots.HotSpot.scale
getset

Scale

◆ screenPosition

Vector3 InfinityCode.uPano.HotSpots.HotSpot.screenPosition
get

Gets the screen position of HotSpot

◆ tilt

float InfinityCode.uPano.HotSpots.HotSpot.tilt
getset

Tilt

◆ worldPosition

Vector3 InfinityCode.uPano.HotSpots.HotSpot.worldPosition
get

Gets the world position of HotSpot