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

StackNode.AcceptsElement

Switch to Manual
protected bool AcceptsElement (Experimental.UIElements.GraphView.GraphElement element, ref int proposedIndex, int maxIndex);

Parameters

elementThe element to add.
proposedIndexThe index where the element would be added. This index can be overwritten.
maxIndexThe maximum value of the index.

Returns

bool Returns true if the specified GraphElement can be added. Returns false otherwise.

Description

Checks whether the specified GraphElement can be added to this StackNode.