uPano  v2.3
InfinityCode.uPano.InteractiveElements.InteractiveElement Class Referenceabstract

The base class for interactive elements like HotSpot, Direction, etc. More...

Inheritance diagram for InfinityCode.uPano.InteractiveElements.InteractiveElement:
InfinityCode.uPano.Directions.Direction InfinityCode.uPano.HotSpots.HotSpot

Public Member Functions

GetRuntimeField< T > (string key)
 Gets user value for the key and cast to the specified type More...
 

Public Attributes

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

object this[string key] [get, set]
 Gets and sets the user value to be stored in HotSpot More...
 
virtual string title [get, set]
 Title More...
 
virtual bool visible [get, set]
 Visible More...
 

Detailed Description

The base class for interactive elements like HotSpot, Direction, etc.

Member Function Documentation

◆ GetRuntimeField< T >()

T InfinityCode.uPano.InteractiveElements.InteractiveElement.GetRuntimeField< T > ( string  key)

Gets user value for the key and cast to the specified type

Template Parameters
TType of value
Parameters
keyKey
Returns
Value

Member Data Documentation

◆ afterTransitionPrefab

GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.afterTransitionPrefab

Prefab which contains the transition that is played after the panorama is closed

◆ beforeTransitionPrefab

GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.beforeTransitionPrefab

Prefab which contains the transition that is played before the panorama is closed

◆ copyPanTilt

bool InfinityCode.uPano.InteractiveElements.InteractiveElement.copyPanTilt = true

Copy pan and tilt from source to target panorama

◆ ignoreGlobalActions

bool InfinityCode.uPano.InteractiveElements.InteractiveElement.ignoreGlobalActions = false

Should the element ignore global actions?

◆ loadPanoramaPrefab

GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.loadPanoramaPrefab

Prefab of panorama that should be instantiated and opened when you click on an element

◆ OnClick

InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnClick = new InteractiveElementEvent()

Event that occurs when click Interactive Element

◆ OnPointerDown

InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerDown = new InteractiveElementEvent()

Event that occurs when press Interactive Element

◆ OnPointerEnter

InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerEnter = new InteractiveElementEvent()

Event that occurs when cursor enter on Interactive Element

◆ OnPointerExit

InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerExit = new InteractiveElementEvent()

Event that occurs when cursor exit from Interactive Element

◆ OnPointerUp

InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerUp = new InteractiveElementEvent()

Event that occurs when release Interactive Element

◆ switchToPanorama

GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.switchToPanorama

Panorama that should be opened when you click on an element

Property Documentation

◆ this[string key]

object InfinityCode.uPano.InteractiveElements.InteractiveElement.this[string key]
getset

Gets and sets the user value to be stored in HotSpot

Parameters
keyKey
Returns
Value

◆ title

virtual string InfinityCode.uPano.InteractiveElements.InteractiveElement.title
getset

Title

◆ visible

virtual bool InfinityCode.uPano.InteractiveElements.InteractiveElement.visible
getset

Visible