Godot Grid Array

by TheQuietCroc

3

Godot Grid Array

Godot v4.x

The Godot logo made with a grid array.

Display boolean arrays as a grid of checkboxes in the inspector.

Usage

Include GridArray or grid_array (not case-sensitive) in your exported Array's name.

If you want to change the number of columns and rows in code, update the node's metadata. The naming convention is {property name}_{columns/rows}.

GDScript

@export
var Grid_arrayExample: Array
# Metadata names
# Grid_arrayExample_columns
# Grid_arrayExample_rows

@export
var gridArraysample: Array
# Metadata names
# gridArraysample_columns
# gridArraysample_rows

C#

[Export]
public Array<bool> TestGridArray { get; private set; } = new();
// Metadata names
// TestGridArray_columns
// TestGridArray_rows

[Export]
private Array<bool> _grid_array_ = new();
// Metadata names
// _grid_array__columns
// _grid_array__rows

Screenshots

An example of the default values of the grid array. Columns, rows, and the number of entries in the array are all set to 1.
An example of a 5 column and 3 row grid array with no check marks.
An example of a 3 column and 5 row grid array with some check marks.

Version

1.0

Engine

4.1

Category

Tools

Download

Version1.0
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author