Component:GridContainer

From Resonite Wiki
Component image 
Grid Container component as seen in the Scene Inspector

The GridContainer component allows for placing facets in a grid format and storing them under a container.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
EditMode Bool Whether this grid container is currently being edited (UI edit mode)
FacetsRoot Slot Where to put facets when they are placed on the grid.
_background RectTransform The UIX rectangle that specifies what the background is.
_content RectTransform The UIX rectangle for the content like facets.
_overlay RectTransform The UIX rectangle for the grid Overlay when editing.
RecalculateOnSizeChange Bool Whether to recalculate the facets on size change of the canvas.
CellCount Nullable`1<Int2> The forced cell count of this grid container.
CellSize Nullable`1<Float2> How big each cell is in pixels.
Padding Float2 How much padding between facets there should be.
_lastCalculatedCenteringOffset Nullable`1<Float2> The last centering offset calculated by this component, if at all.
_lastCalculatedCellSize Nullable`1<Float2> The last cell size calculated by this component, if at all. Created when CellCount is specified.
_lastCalculatedPadding Nullable`1<Float2> The last calculated padding between facets if at all.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
CopyFacetLayout:ButtonEventHandler ButtonEventHandler Copies the facet layout to the clipboard for debugging purposes.

FacetInsertSearchDirection

Values
Name Value Description
Up 0 Search for facet space in the Up direction.
Right 1 Search for facet space in the Right direction.
Down 2 Search for facet space in the Down direction.
Left 3 Search for facet space in the Left direction.

Examples

Used in dash screens like the home tab so that facets can be placed on it during edit mode and then saved.

See Also