Skip to content

Add configuration to inject func_godot_properties into entity metadata - #264

Open
erodozer wants to merge 1 commit into
func-godot:mainfrom
erodozer:patch-1
Open

Add configuration to inject func_godot_properties into entity metadata #264
erodozer wants to merge 1 commit into
func-godot:mainfrom
erodozer:patch-1

Conversation

@erodozer

@erodozer erodozer commented Aug 10, 2026

Copy link
Copy Markdown

Support workflows that avoid custom scripts per entity type by injecting entity properties into object meta fields as a fallback configurable behavior.

My usecase is that architectually most of my entities are data containers, with behavior hoisted elsewhere. It's largely unnecessary for me to make godot scripts for each one, so instead I opt to keep things as plain node types. Still, I need to get the entity properties somehow at runtime, and it's more flexible to just access it through generic storage available on all godot object types.

@RisingThumb

Copy link
Copy Markdown
Contributor

The entity class should have a toggle for whether you want the properties attached to the metadata. As is, this inflates what each node in a generated map stores which for me isn't desirable behaviour.

@erodozer

Copy link
Copy Markdown
Author

The entity class should have a toggle for whether you want the properties attached to the metadata. As is, this inflates what each node in a generated map stores which for me isn't desirable behaviour.

Added a config toggle on the entity class to control this fallback behavior

Comment thread addons/func_godot/src/core/entity_assembler.gd Outdated
@erodozer erodozer changed the title Fallback to adding func_godot_properties to entity meta Allow adding func_godot_properties to entity meta Aug 11, 2026
Comment thread addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd Outdated
@sinewavey

Copy link
Copy Markdown
Collaborator

looks good to me; any other thoughts before merge @RhapsodyInGeek ?

Comment thread addons/func_godot/src/fgd/func_godot_fgd_entity_class.gd Outdated
@erodozer erodozer changed the title Allow adding func_godot_properties to entity meta Add configuration to inject func_godot_properties into entity metadata Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants