ContentZoomer
class in UnityEditor.Experimental.GraphView
/
Inherits from:UIElements.Manipulator
/
Implemented in:UnityEditor
Description 描述
Manipulator that allows zooming in GraphView.
Static Properties
| DefaultMaxScale | Default max zoom level. | ||
| DefaultMinScale | Default min zoom level. | ||
| DefaultReferenceScale | Default reference zoom level. | ||
| DefaultScaleStep | Default zoom step. |
Properties 属性
| keepPixelCacheOnZoom | Optimization option to keep the old pixel cache while zooming and only updating it when zooming is finished (based on a timer). | ||
| 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. |
Constructors
| ContentZoomer | ContentZoomer constructor. |
Protected Methods
| RegisterCallbacksOnTarget | Called to register click event callbacks on the target element. | ||
| UnregisterCallbacksFromTarget | Called to unregister event callbacks from the target element. |
Inherited Members 继承成员
Properties 属性
| target | VisualElement being manipulated. |