IndexToPos

IndexToPos(int, int, int, Vector2Int)

public Vector2 IndexToPos(int index, int x, int y, Vector2Int tilePos) ;

Description

Get the Texture position from the index of the part.

Parameters

Parameter Name Description
index Index.
x The x coordinate(between 0 and 1).
y The y coordinate(between 0 and 1).
tilePos Tile position

Returns

The texture position.