- changed status to open
How do I invert the display of the second dimension of a two-dimensional array in TableMatrixAttribute?
Hi, how do I invert the display of the second dimension of a two-dimensional array in TableMatrixAttribute? So that the Y axis is not displayed from the top to the bottom, but is displayed from the bottom up.
Comments (4)
-
-
- changed status to resolved
As of patch 2.0.11.0 it is now possible to flip the dimensions of the display using the TableMatrix attribute like so:
[TableMatrix(Transpose = true)] public bool[,] matrix;
-
Thanks for adding the Transpose option. Transpose it quite useful, however it doesn’t address the original request.
It was requested that only the Y axis be flipped so that element 0 is drawn at the bottom of the table instead of the top. [0,0] should be at the BOTTOM-LEFT in the table.
The new “Transpose” parameter instead swaps the rows/columns, resulting in columns being drawn vertically and rows horizontally with [0,0] still being at the TOP-LEFT.
I created a new issue, as I didn’t see a way to reopen this one.
https://bitbucket.org/sirenix/odin-inspector/issues/753/using-tablematrixattribute-how-can-i
-
- changed status to closed
Since there are multiple tickets about this I'm gonna close all but one to focus the discussion. If you have additional input to this discussion please do so here: #753
- Log in to comment
Thanks for submitting the request. We'll add support for this via the attribute in the next patch.