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

Scope.AcceptsElement

切换到手册
public bool AcceptsElement (Experimental.GraphView.GraphElement element, ref string reasonWhyNotAccepted);

参数

element 要添加的元素。
reasonWhyNotAccepted 无法将指定元素添加到作用域的原因。

返回

bool 如果作用域接受指定的元素,则返回 true。否则返回 false。

描述

是否可以将 GraphElement 添加到该作用域。