Method TryLayoutByRow
TryLayoutByRow(RectInt, uint, out RectInt, out RectInt)
Try decompose the givent rect into rows given the parameter
Declaration
public static bool TryLayoutByRow(RectInt src, uint tileSize, out RectInt main, out RectInt other)
Parameters
Type | Name | Description |
---|---|---|
RectInt | src | The rect to split |
uint | tileSize | The size of the tiles |
RectInt | main | Computed main area |
RectInt | other | Computed other area |
Returns
Type | Description |
---|---|
bool | If true, the tiles decomposition is a success |