AcceptsElement(GraphElement, ref string)
Whether an element can be added to this group.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
AcceptsElement(GraphElement, string)
public override bool AcceptsElement(GraphElement element, ref string reasonWhyNotAccepted)
Parameters
The element to add.
The reason that indicates why the element is not accepted.
Returns
Type | Description |
|---|---|
| bool | Returns false if the specified element is a scope or group. Otherwise returns true. |