camera movement script
More...
◆ Awake()
virtual void XSSLG.XSCamera.Awake |
( |
| ) |
|
|
inlinevirtual |
◆ FixTargetPosition()
virtual void XSSLG.XSCamera.FixTargetPosition |
( |
ref Vector3 |
targetPosition | ) |
|
|
inlineprotectedvirtual |
◆ MoveDirection()
virtual Vector3 XSSLG.XSCamera.MoveDirection |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inlineprotectedvirtual |
caculate camera direction
- Parameters
-
- Returns
◆ MovementAnimation()
virtual IEnumerator XSSLG.XSCamera.MovementAnimation |
( |
| ) |
|
|
inlinevirtual |
◆ MoveScreen()
virtual void XSSLG.XSCamera.MoveScreen |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inlineprotectedvirtual |
◆ MoveTo()
virtual void XSSLG.XSCamera.MoveTo |
( |
Vector3 |
worldPos | ) |
|
|
inlinevirtual |
◆ SetCameraPosition()
virtual void XSSLG.XSCamera.SetCameraPosition |
( |
Vector3 |
targetPosition | ) |
|
|
inlineprotectedvirtual |
◆ SetConfinerBound()
virtual void XSSLG.XSCamera.SetConfinerBound |
( |
Bounds |
bound | ) |
|
|
inlinevirtual |
◆ SetPosTo()
virtual void XSSLG.XSCamera.SetPosTo |
( |
Vector3 |
worldPos | ) |
|
|
inlinevirtual |
◆ Update()
virtual void XSSLG.XSCamera.Update |
( |
| ) |
|
|
inlinevirtual |
◆ UpdateCameraRotation()
virtual void XSSLG.XSCamera.UpdateCameraRotation |
( |
| ) |
|
|
inlineprotectedvirtual |
arrow Key control camera rotation angle
◆ UpdatePos()
virtual void XSSLG.XSCamera.UpdatePos |
( |
Vector3 |
direction | ) |
|
|
inlineprotectedvirtual |
update camera position
- Parameters
-
◆ WorldPosToCameraPos()
virtual Vector3 XSSLG.XSCamera.WorldPosToCameraPos |
( |
Vector3 |
worldPos | ) |
|
|
inlineprotectedvirtual |
计算相机看向 worldPos 的时相机自己的位置
- Parameters
-
- Returns
◆ ZoomScreen()
virtual void XSSLG.XSCamera.ZoomScreen |
( |
float |
increment | ) |
|
|
inlineprotectedvirtual |
The mouse wheel controrl to zoom in and out
- Parameters
-
◆ cameraSizeY
float XSSLG.XSCamera.cameraSizeY = 20 |
|
protected |
Camera up and down movement range
◆ MoveList
如果要相机依次移动到多个位置, 就放入列表, 依次移动
◆ moveSpeed
float XSSLG.XSCamera.moveSpeed = 30f |
|
protected |
screen move speed when mouse in the edge of screen
◆ RotationStep
float XSSLG.XSCamera.RotationStep = 22.5f |
|
protected |
Rotation angle of arrow key
◆ zoomSpeed
float XSSLG.XSCamera.zoomSpeed = 20f |
|
protected |
◆ Bound
Bounds XSSLG.XSCamera.Bound = new Bounds() |
|
getset |
◆ CanFreeMove
bool XSSLG.XSCamera.CanFreeMove = true |
|
getset |
◆ Confier
CinemachineConfiner XSSLG.XSCamera.Confier |
|
getsetprotected |
cinemachine virtual camera move range
◆ InputProvider
CinemachineInputProvider XSSLG.XSCamera.InputProvider |
|
getsetprotected |
◆ IsMoving
bool XSSLG.XSCamera.IsMoving |
|
getprotected set |
camera is moving, if is moving we cannot use mouse to control camera
◆ VirtualCamera
CinemachineVirtualCamera XSSLG.XSCamera.VirtualCamera |
|
getsetprotected |
cinemachine virtual camera script
The documentation for this class was generated from the following file:
- Assets/XSGridEditor/Scripts/base/battle/component/camera/XSCamera.cs