uPano
v3.1
|
Interactive GameObject, which is automatically positioned on the panorama with pan and tilt More...
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 | |
T | 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... | |
Interactive GameObject, which is automatically positioned on the panorama with pan and tilt
Enumeration of actions to show the tooltip
|
virtual |
Destroys current HotSpot
Reimplemented from InfinityCode.uPano.InteractiveElements.InteractiveElement.
|
virtual |
Gets the pan and tilt of an interactive element
pan | Pan |
tilt | Tilt |
Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.
Vector2 InfinityCode.uPano.HotSpots.HotSpot.GetScreenPosition | ( | Camera | camera = null | ) |
|
virtual |
Initiates quick actions
target | The container that will contain the Quick Actions components |
Reimplemented from InfinityCode.uPano.InteractiveElements.InteractiveElement.
|
virtual |
Reinitializes an interactive element
Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.
|
virtual |
Sets pan and tilt for an interactive element
pan | New pan |
tilt | New tilt |
Implements InfinityCode.uPano.InteractiveElements.InteractiveElement.
void InfinityCode.uPano.HotSpots.HotSpot.UpdatePosition | ( | ) |
Updates position of HotSpot
string InfinityCode.uPano.HotSpots.HotSpot.tooltip |
Tooltip when hovering over a hot spot
TooltipAction InfinityCode.uPano.HotSpots.HotSpot.tooltipAction |
The action used to display the tooltip
GameObject InfinityCode.uPano.HotSpots.HotSpot.tooltipPrefab |
Tooltip prefab
|
getset |
The multiplier of distance from the center of the panorama to the world position of HotSpot.
|
get |
Reference to instance of HotSpot
|
get |
Reference to HotSpot manager
|
getset |
Pan
|
getset |
Prefab
|
getset |
Rotation
|
getset |
Scale
|
get |
Gets the screen position of HotSpot
|
getset |
Tilt
|
get |
Gets the world position of HotSpot