uPano  v3.1
InfinityCode.uPano.Directions.Direction Class Reference

Arrow pointing direction to the next panorama More...

Inheritance diagram for InfinityCode.uPano.Directions.Direction:
InfinityCode.uPano.InteractiveElements.PrefabElement InfinityCode.uPano.InteractiveElements.IScalableElement InfinityCode.uPano.InteractiveElements.InteractiveElement

Public Member Functions

 Direction (float pan, GameObject prefab, DirectionManager manager)
 Constructor More...
 
override void GetPanTilt (out float pan, out float tilt)
 Gets the pan and tilt of an interactive element 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...
 
- Public Member Functions inherited from InfinityCode.uPano.InteractiveElements.InteractiveElement
virtual void Destroy ()
 Destroy an interactive element More...
 
virtual void InitQuickActions (GameObject target)
 Initiates quick actions More...
 
GetRuntimeField< T > (string key)
 Gets user value for the key and cast to the specified type More...
 

Properties

DirectionInstance instance [get]
 Instance of the direction More...
 
DirectionManager manager [get]
 Reference to the Direction manager More...
 
float pan [get, set]
 Pan More...
 
override GameObject prefab [get, set]
 Prefab More...
 
Vector3 scale [get, set]
 Scale 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...
 

Additional Inherited Members

- 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...
 

Detailed Description

Arrow pointing direction to the next panorama

Constructor & Destructor Documentation

◆ Direction()

InfinityCode.uPano.Directions.Direction.Direction ( float  pan,
GameObject  prefab,
DirectionManager  manager 
)

Constructor

Parameters
panPan
prefabPrefab
managerReference to the manager

Member Function Documentation

◆ GetPanTilt()

override void InfinityCode.uPano.Directions.Direction.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.

◆ Reinit()

override void InfinityCode.uPano.Directions.Direction.Reinit ( )
virtual

Reinitializes an interactive element

Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.

◆ SetPanTilt()

override void InfinityCode.uPano.Directions.Direction.SetPanTilt ( float  pan,
float  tilt 
)
virtual

Sets pan and tilt for an interactive element

Parameters
panNew pan
tiltNew tilt

Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.

Property Documentation

◆ instance

DirectionInstance InfinityCode.uPano.Directions.Direction.instance
get

Instance of the direction

◆ manager

DirectionManager InfinityCode.uPano.Directions.Direction.manager
get

Reference to the Direction manager

◆ pan

float InfinityCode.uPano.Directions.Direction.pan
getset

Pan

◆ prefab

override GameObject InfinityCode.uPano.Directions.Direction.prefab
getset

Prefab

◆ scale

Vector3 InfinityCode.uPano.Directions.Direction.scale
getset

Scale