Bit Flags Editor

An asset by SquiggelSquirrel
The page banner background of a mountain and forest
Bit Flags Editor hero image

Quick Information

0 ratings
Bit Flags Editor icon image
SquiggelSquirrel
Bit Flags Editor

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".

Supported Engine Version
3.4
Version String
1.0.2
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

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: README image

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".

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Bit Flags Editor icon image
SquiggelSquirrel
Bit Flags Editor

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".

Supported Engine Version
3.4
Version String
1.0.2
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers