
S
Publisher
squiggelsquirrel
Bit Flags Editor
Tools
Bitmask Flags Inspector Checkboxes Tooltips Interface Development Property
This editor plugin is for bitmask integers (exported with the FLAGS hint), providing a grid of small boxes similar to the physics layer UI. It provides 16 checkboxes, and optionally sets tooltips using a custom method "_get_layer_names".
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
BitFlagEditor
Godot inspector plugin for exported int/flag properties
Usage
- Install & enable plugin
- Export a property with
export(int, FLAGS, "")
- (Optional) in a
tool
script, define func_get_layer_names(property_name :String) -> Array
to set tooltips for each bit
Example
tool
extends Node
export(int, FLAGS, "") var group = 1
func _get_layer_names(property_name) -> Array:
if property_name == "group":
return ['Apples', 'Carrots', 'Apricots', 'Brocoli']
return []
Inspector when editing this node looks like: