Click or drag to resize

OrbitCam Class

Orbits and zooms in/out a Transform around another one with gestures.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.BehavioursOrbitCam

Namespace:  Kit.Behaviours
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class OrbitCam : MonoBehaviour
Request Example View Source

The OrbitCam type exposes the following members.

Fields
  NameDescription
Public fieldOrbitSpeed
The speed at which to orbit.
Public fieldOrbitX
Should orbit using screen X-axis?
Public fieldOrbitY
Should orbit using screen Y-axis?
Public fieldTarget
The Transform to orbit around.
Public fieldZoomBounds
Minimum and maximum distances to keep while zooming.
Public fieldZoomSpeed
The speed at which to zoom.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also