class in UnityEditor.Experimental.GraphView
实现接口:IEventHandler, IExperimentalFeatures, IResolvedStyle, ISelection, ITransform, ITransitionAnimations, IVisualElementScheduler
主 GraphView 类。
canPasteSerializedData | 询问序列化数据是否可以粘贴。 |
contentViewContainer | 主内容容器。 |
deleteSelection | 删除所选项回调。 |
edges | 图中的所有边缘。 |
elementResized | 元素调整大小回调。 |
elementsAddedToGroup | 在将 GraphElements 添加到组时使用的回调。 |
elementsInsertedToStackNode | 在将 GraphElements 插入 StackNode 时使用的回调。 |
elementsRemovedFromGroup | 在从组中删除 GraphElements 时使用的回调。 |
elementsRemovedFromStackNode | 在从 StackNode 中删除 GraphElements 时使用的回调。 |
graphElements | 图中的所有 GraphElements。 |
graphViewChanged | 在图中发生特定更改时使用的回调。请参阅 GraphViewChange。 |
groupTitleChanged | 在组标题更改时使用的回调。 |
isReframable | 所选项是否可以重新构造。 |
maxScale | 最大缩放级别。 |
minScale | 最小缩放级别。 |
nodeCreationRequest | 在用户请求显示节点创建窗口时使用的回调。 |
nodes | 当前图中的所有节点。 |
placematContainer | The PlacematContainer used by the GraphView. |
ports | 当前图中的所有端口。 |
referenceScale | 参考缩放级别。 |
scale | 当前图的缩放级别。 |
scaleStep | 缩放步骤。有关详细信息,请参阅 ContentZoomer.scaleStep。 |
selection | 图中所有当前已选择的元素。 |
serializeGraphElements | 用于序列化图形元素以便实现复制/粘贴和其他操作的回调。 |
supportsWindowedBlackboard | 如果此 GraphView 支持窗口化 Blackboard,则设置为 true。否则设置为 false。 |
unserializeAndPaste | 用于取消序列化图形元素并将其添加到图中的回调。 |
viewport | 图形视口。这就是目前的情况。 |
viewTransform | 图形的视图变换。 |
viewTransformChanged | 视图变换更改回调。 |
zoomerMaxElementCountWithPixelCacheRegen | 图中的元素数量。若超过该数量,缩放操控器将在您每次勾选时关闭像素缓存再生功能,以免性能下降。 |
AddElement | 添加新的 GraphElement。应使用这个而非 Add() 来添加 GraphElement。 |
AddLayer | 为 GraphView 添加一个新层。 |
AddToSelection | 向所选项添加元素。 |
BuildContextualMenu | 向上下文菜单添加菜单项。 |
CalculateRectToFitAll | 计算矩形大小和位置以适应图中的所有元素。 |
ClearSelection | 清除所选项。 |
DeleteElements | 从图形视图中删除元素。 |
DeleteSelection | 删除选择的元素。 |
FrameAll | 聚焦查看图中所有元素。 |
FrameNext | 当前选择一个元素后,聚焦查看下一个元素。 |
FrameOrigin | 聚焦查看图形原点。 |
FramePrev | 聚焦查看当前所选元素之前的上一个元素。 |
FrameSelection | 聚焦查看当前所选元素。 |
GetBlackboard | 获取与此 GraphView 关联的 Blackboard。 |
GetCompatiblePorts | 获取与给定端口兼容的所有端口。 |
GetEdgeByGuid | 根据边缘 GUID 获取边缘。 |
GetElementByGuid | 获取任何带有给定 GUID 的元素。 |
GetNodeByGuid | 获取带有给定 GUID 的节点。 |
GetPortByGuid | 根据端口 GUID 获取端口。 |
GetPortCenterOverride | Gets another location for a specific port and checks if the port has an overridden position. |
ReleaseBlackboard | 从此 GraphView 释放关联的 Blackboard。 |
RemoveElement | 从图中删除元素。 |
RemoveFromSelection | 从所选项中删除元素。 |
SetupZoom | 设置缩放属性。 |
UpdateViewTransform | 更新视口变换。 |
CanPasteSerializedData | 用于查看序列化数据是否可以粘贴的默认方法。 |
CreatePlacematContainer | Override this method, in a derived class, to create a custom PlacematContainer. |
DeleteSelectionOperation | 删除所选项的默认方法。 |
SerializeGraphElements | 序列化图形元素的默认方法。 |
UnserializeAndPasteOperation | 取消序列化并粘贴元素的默认方法。 |
ValidateTransform | 验证视图变换。 |
CalculateFrameTransform | 根据缩放级别和窗口或父对象的大小计算视图变换。 |
CollectElements | Retrieves the set of elements that match a specified condition. The matching elements are selected from an enumerable of graph elements. |
CanPasteSerializedDataDelegate | 用于查看序列化数据是否可以粘贴的委托。 |
DeleteSelectionDelegate | 删除所选项的委托。 |
ElementResized | 元素调整大小委托。 |
GraphViewChanged | 用于指示 GraphView 中的更改(通常由操控器执行)的委托。 |
SerializeGraphElementsDelegate | 用于序列化图形元素的委托。 |
UnserializeAndPasteDelegate | 用于取消序列化并粘贴元素的委托。 |
ViewTransformChanged | 视图变换更改(缩放)委托。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.