uPano
v3.1
|
The base class for interactive elements like HotSpot, Direction, etc. More...
Public Member Functions | |
virtual void | Destroy () |
Destroy an interactive element More... | |
virtual void | InitQuickActions (GameObject target) |
Initiates quick actions More... | |
abstract void | GetPanTilt (out float pan, out float tilt) |
Gets the pan and tilt of an interactive element More... | |
T | GetRuntimeField< T > (string key) |
Gets user value for the key and cast to the specified type More... | |
abstract void | Reinit () |
Reinitializes an interactive element More... | |
abstract void | SetPanTilt (float pan, float tilt) |
Sets pan and tilt for an interactive element 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 | |
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... | |
The base class for interactive elements like HotSpot, Direction, etc.
|
virtual |
Destroy an interactive element
Reimplemented in InfinityCode.uPano.HotSpots.HotSpot.
|
pure virtual |
Gets the pan and tilt of an interactive element
pan | Pan |
tilt | Tilt |
Implemented in InfinityCode.uPano.HotSpots.HotSpot, InfinityCode.uPano.HotAreas.HotArea, and InfinityCode.uPano.Directions.Direction.
T InfinityCode.uPano.InteractiveElements.InteractiveElement.GetRuntimeField< T > | ( | string | key | ) |
Gets user value for the key and cast to the specified type
T | Type of value |
key | Key |
|
virtual |
Initiates quick actions
target | The container that will contain the Quick Actions components |
Reimplemented in InfinityCode.uPano.HotSpots.HotSpot.
|
pure virtual |
Reinitializes an interactive element
Implemented in InfinityCode.uPano.HotSpots.HotSpot, InfinityCode.uPano.HotAreas.HotArea, and InfinityCode.uPano.Directions.Direction.
|
pure virtual |
Sets pan and tilt for an interactive element
pan | New pan |
tilt | New tilt |
Implemented in InfinityCode.uPano.HotSpots.HotSpot, InfinityCode.uPano.HotAreas.HotArea, and InfinityCode.uPano.Directions.Direction.
GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.afterTransitionPrefab |
Prefab which contains the transition that is played after the panorama is closed
GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.beforeTransitionPrefab |
Prefab which contains the transition that is played before the panorama is closed
bool InfinityCode.uPano.InteractiveElements.InteractiveElement.copyPanTilt = true |
Copy pan and tilt from source to target panorama
bool InfinityCode.uPano.InteractiveElements.InteractiveElement.ignoreGlobalActions = false |
Should the element ignore global actions?
GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.loadPanoramaPrefab |
Prefab of panorama that should be instantiated and opened when you click on an element
InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnClick = new InteractiveElementEvent() |
Event that occurs when click Interactive Element
InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerDown = new InteractiveElementEvent() |
Event that occurs when press Interactive Element
InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerEnter = new InteractiveElementEvent() |
Event that occurs when cursor enter on Interactive Element
InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerExit = new InteractiveElementEvent() |
Event that occurs when cursor exit from Interactive Element
InteractiveElementEvent InfinityCode.uPano.InteractiveElements.InteractiveElement.OnPointerUp = new InteractiveElementEvent() |
Event that occurs when release Interactive Element
GameObject InfinityCode.uPano.InteractiveElements.InteractiveElement.switchToPanorama |
Panorama that should be opened when you click on an element
|
getset |
Reference to instance of a panorama
|
getset |
Gets and sets the user value to be stored in an element
key | Key |
|
getset |
Title
|
getset |
Visible