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

StackNode.GetInsertionIndex

Switch to Manual
public int GetInsertionIndex (Vector2 worldPosition);

Parameters

worldPositionThe world position to get an index from.

Returns

int Returns the insertion index.

Description

Retrieves the insertion index in the StackNode if an item is dropped at the specified world position.