How to make a checkable property

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Multirious

In the control node, there will be custom styles property you can check.
enter image description here

I wanted to try it so I did this.

var test: Texture

func _get_property_list() -> Array:
    return [
             name = 'test',
             type = TYPE_OBJECT,
             hint = PROPERTY_HINT_RESOURCE_TYPE,
             hint_string = 'Texture',
             usage = PROPERTY_USAGE_CHECKABLE

But when usage = PROPERTY_USAGE_CHECKABLE are put in, the property is gone in the inspector.

:bust_in_silhouette: Reply From: Multirious

Ah, figured it out. It’s a bitflag thing.