Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
Notifying Containers (Array & Dictionary)
Adds wrappers for Containers (Arrays/Dictionaries) that emit the changed signal when their contents are modified.
Supported Engine Version
4.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
7 hours ago
Git URL
Issue URL
godot-notifying-containers
A Godot plugin that adds Wrapper Classes for Containers (Arrays/Dictionaries) that emit the changed signal when their contents are modified.
Usage
Runtime:
- Create a new container with
Notifying[Array/Dictionary].new(). You can also pass in initial data and type strings when you create the Container. - Connect to the
changedsignal. - Use the provided functions to interface with the array.
Editor:
- Add
@export var container: Notifying[Array/Dictionary]to your script. - Set static type in the Inspector via the Type String properties.
- Set values in the Inspector via the Data property. Changes in the inspector will still emit the
changedsignal, so your@toolscripts can make use of this.
Notes
- The
get()andset()functions are renamed toget_at()andset_at()to avoid conflicts withObject.get()andObject.set(). - The
changedsignal is only emitted when the internal Container is modified through the provided functions, not when it's modified directly, or when any item within the Container (such as a nested Array or Resource) is directly modified. - Unlike regular Containers, static type cannot be set at compile time, meaning you cannot set the static type for a default exported value unless your script uses the
@toolannotation. This can be worked around by setting the static type in the inspector. - Strings may behave weirdly in the Inspector, losing focus after every change. I've sadly not yet found a way to fix this short of re-implementing the entire Array/Dictionary Property Editor.
Adds wrappers for Containers (Arrays/Dictionaries) that emit the changed signal when their contents are modified.
Reviews
Quick Information
Notifying Containers (Array & Dictionary)
Adds wrappers for Containers (Arrays/Dictionaries) that emit the changed signal when their contents are modified.
Supported Engine Version
4.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
7 hours ago
Git URL
Issue URL