uPano  v3.1
InfinityCode.uPano.Pano Class Reference

The core of the panorama More...

Inherits MonoBehaviour.

Public Types

enum  CameraType { CameraType.createNew, CameraType.existing }
 Types of camera for panorama More...
 
enum  NewCameraDepthType { NewCameraDepthType.autoDetect, NewCameraDepthType.manual }
 Types of new camera depth More...
 
enum  Projection { Projection.perspective, Projection.orthographic }
 Projection of new camera More...
 
enum  RotationMode { RotationMode.rotateCamera, RotationMode.rotatePanorama, RotationMode.rotateGameObject }
 Types of rotation modes More...
 

Public Member Functions

void LookAt (float pan, float tilt)
 Look at point by pan and tilt More...
 
void UpdateRotation ()
 Updates the rotation More...
 
void VerifyFOV ()
 Verifies fov More...
 
void VerifyPan ()
 Verifies pan More...
 
void VerifyTilt ()
 Verifies tilt More...
 

Public Attributes

Action< float > OnFOVChanged
 Action that occurs when fov is changed More...
 
Func< Vector2 > OnGetInputPosition
 Allows you to intercept getting the current input position More...
 
Action< float > OnPanChanged
 Action that occurs when pan is changed More...
 
Action< float > OnTiltChanged
 Action that occurs when tilt is changed More...
 
Func< float, float > OnVerifyFOV
 Function to verify and fix fov More...
 
Func< float, float > OnVerifyPan
 Function to verify and fix pan More...
 
Func< float, float > OnVerifyTilt
 Function to verify and fix tilt More...
 
bool locked
 Interaction with the panorama is locked? More...
 

Static Public Attributes

const string version = "3.0.2.1"
 uPano version More...
 
static Action< PanoOnPanoDestroy
 Action that occurs when pano is destroyed More...
 
static Action< PanoOnPanoEnabled
 Action that occurs when pano is enabled More...
 
static Action< PanoOnPanoStarted
 Action that occurs at the end of the Start method More...
 
static Action< PanoOnPanoUnloaded
 Action that occurs when pano is unloaded More...
 
static bool isPreview
 Is preview in edit mode More...
 

Properties

Camera activeCamera [get]
 Reference to the camera displaying the panorama More...
 
float fov [get, set]
 Gets and sets the fov More...
 
float northPan [get, set]
 Gets and sets the north pan More...
 
float localPan [get, set]
 Gets and sets the local pan More...
 
float pan [get, set]
 Gets and sets the pan (localPan - northPan) More...
 
PanoRenderer panoRenderer [get]
 Gets the reference to a pano renderer More...
 
float tilt [get, set]
 Gets and sets the tilt More...
 
RotationMode rotationMode [get, set]
 Gets and sets the rotation mode More...
 
GameObject rotateGameObject [get, set]
 Gets and sets GameObject that will rotate More...
 

Detailed Description

The core of the panorama

Member Enumeration Documentation

◆ CameraType

Types of camera for panorama

Enumerator
createNew 

Create a new camera

existing 

Uses an existing camera

◆ NewCameraDepthType

Types of new camera depth

Enumerator
autoDetect 

Automatically calculates the depth of the camera to show the panorama on the front

manual 

Use fixed camera depth

◆ Projection

Projection of new camera

Enumerator
perspective 

Perspective projection

orthographic 

Orthographic projection

◆ RotationMode

Types of rotation modes

Enumerator
rotateCamera 

Change pan and tilt rotate camera

rotatePanorama 

Change pan and tilt rotate the panorama GameObject

rotateGameObject 

Change pan and tilt rotate the custom GameObject

Member Function Documentation

◆ LookAt()

void InfinityCode.uPano.Pano.LookAt ( float  pan,
float  tilt 
)

Look at point by pan and tilt

Parameters
panPan
tiltTilt

◆ UpdateRotation()

void InfinityCode.uPano.Pano.UpdateRotation ( )

Updates the rotation

◆ VerifyFOV()

void InfinityCode.uPano.Pano.VerifyFOV ( )

Verifies fov

◆ VerifyPan()

void InfinityCode.uPano.Pano.VerifyPan ( )

Verifies pan

◆ VerifyTilt()

void InfinityCode.uPano.Pano.VerifyTilt ( )

Verifies tilt

Member Data Documentation

◆ isPreview

bool InfinityCode.uPano.Pano.isPreview
static

Is preview in edit mode

◆ locked

bool InfinityCode.uPano.Pano.locked

Interaction with the panorama is locked?

◆ OnFOVChanged

Action<float> InfinityCode.uPano.Pano.OnFOVChanged

Action that occurs when fov is changed

◆ OnGetInputPosition

Func<Vector2> InfinityCode.uPano.Pano.OnGetInputPosition

Allows you to intercept getting the current input position

◆ OnPanChanged

Action<float> InfinityCode.uPano.Pano.OnPanChanged

Action that occurs when pan is changed

◆ OnPanoDestroy

Action<Pano> InfinityCode.uPano.Pano.OnPanoDestroy
static

Action that occurs when pano is destroyed

◆ OnPanoEnabled

Action<Pano> InfinityCode.uPano.Pano.OnPanoEnabled
static

Action that occurs when pano is enabled

◆ OnPanoStarted

Action<Pano> InfinityCode.uPano.Pano.OnPanoStarted
static

Action that occurs at the end of the Start method

◆ OnPanoUnloaded

Action<Pano> InfinityCode.uPano.Pano.OnPanoUnloaded
static

Action that occurs when pano is unloaded

◆ OnTiltChanged

Action<float> InfinityCode.uPano.Pano.OnTiltChanged

Action that occurs when tilt is changed

◆ OnVerifyFOV

Func<float, float> InfinityCode.uPano.Pano.OnVerifyFOV

Function to verify and fix fov

◆ OnVerifyPan

Func<float, float> InfinityCode.uPano.Pano.OnVerifyPan

Function to verify and fix pan

◆ OnVerifyTilt

Func<float, float> InfinityCode.uPano.Pano.OnVerifyTilt

Function to verify and fix tilt

◆ version

const string InfinityCode.uPano.Pano.version = "3.0.2.1"
static

uPano version

Property Documentation

◆ activeCamera

Camera InfinityCode.uPano.Pano.activeCamera
get

Reference to the camera displaying the panorama

◆ fov

float InfinityCode.uPano.Pano.fov
getset

Gets and sets the fov

◆ localPan

float InfinityCode.uPano.Pano.localPan
getset

Gets and sets the local pan

◆ northPan

float InfinityCode.uPano.Pano.northPan
getset

Gets and sets the north pan

◆ pan

float InfinityCode.uPano.Pano.pan
getset

Gets and sets the pan (localPan - northPan)

◆ panoRenderer

PanoRenderer InfinityCode.uPano.Pano.panoRenderer
get

Gets the reference to a pano renderer

◆ rotateGameObject

GameObject InfinityCode.uPano.Pano.rotateGameObject
getset

Gets and sets GameObject that will rotate

◆ rotationMode

RotationMode InfinityCode.uPano.Pano.rotationMode
getset

Gets and sets the rotation mode

◆ tilt

float InfinityCode.uPano.Pano.tilt
getset

Gets and sets the tilt