Version: 2019.1
Experimental: this API is experimental and might be changed or removed in the future.

Scope.AcceptsElement

Switch to Manual
public bool AcceptsElement (Experimental.UIElements.GraphView.GraphElement element, ref string reasonWhyNotAccepted);

Parameters

elementThe element to add.
reasonWhyNotAcceptedThe reason why the specified element cannot be added to the Scope.

Returns

bool Returns true if the specified element is accepted by the Scope. Returns false otherwise.

Description

Whether the GraphElement can be added to this scope.