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

StackNode.GetInsertionIndex

切换到手册
public int GetInsertionIndex (Vector2 worldPosition);

参数

worldPositionThe world position to get an index from.

返回

int Returns the insertion index.

描述

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