ContentZoomer
Manipulator that allows zooming in GraphView.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
- Inherits from: Manipulator
- Implements: IManipulator
public class ContentZoomer : Manipulator, IManipulator
Static Fields
Value | Description |
|---|---|
| DefaultMaxScale | Default max zoom level. |
| DefaultMinScale | Default min zoom level. |
| DefaultReferenceScale | Default reference zoom level. |
| DefaultScaleStep | Default zoom step. |
Constructors
Constructor | Description |
|---|---|
| ContentZoomer() | ContentZoomer constructor. |
Properties
Property | Description |
|---|---|
| maxScale | Max zoom level. |
| minScale | Min zoom level. |
| referenceScale | Reference zoom level. |
| scaleStep | Zoom step: percentage of variation between a zoom level and the next. For example, with a value of 0.15, which represents 15%, a zoom level of 200% will become 230% when zooming in. |
Methods
Method | Description |
|---|---|
| RegisterCallbacksOnTarget | Called to register click event callbacks on the target element. |
| UnregisterCallbacksFromTarget | Called to unregister event callbacks from the target element. |