MiniMap
MiniMap.
Read time 8 minutesLast updated 8 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
- Inherits from: GraphElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ISelectable
public class MiniMap : GraphElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ISelectable
Remarks
Shows all nodes in the graph in a small window.
Fields
Value | Description |
|---|---|
| zoomFactorTextChanged | Callback for when the zoom factor text has changed. |
Constructors
Constructor | Description |
|---|---|
| MiniMap() | MiniMap's constructor. |
Properties
Property | Description |
|---|---|
| anchored | True if the MiniMap is pinned or achored (non-movable). False if you can drag and move it around. |
| graphView | The GraphView that the MiniMap is attached to. |
| maxHeight | Max height. |
| maxWidth | Max width. |
| windowed | Set to true when the MiniMap displays in a separate window. Set to false when the MiniMap displays in the GraphView. |
Methods
Method | Description |
|---|---|
| BuildContextualMenu | Add menu items to the MiniMap contextual menu. |
| OnResized | Call this method after a user has resized a MiniMap to let the MiniMap know it needs to get updated. |