AcceptsElement(GraphElement, ref int, int)
Checks whether the specified GraphElement can be added to this StackNode.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
AcceptsElement(GraphElement, int, int)
protected virtual bool AcceptsElement(GraphElement element, ref int proposedIndex, int maxIndex)
Parameters
The element to add.
The index where the element would be added. This index can be overwritten.
The maximum value of the index.
Returns
Type | Description |
|---|---|
| bool | Returns true if the specified GraphElement can be added. Returns false otherwise. |