defold / defold/defold

Allow disable/enable gameobjects with child gameobjects at the same time

Open
#11,127 0 comments 3 reactions 0 assignees View on GitHub
engine feature request
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
1d 19h
Merged PRs (30d)
130

Description

To `enable\disable` go you need to send a separate message:

msg.post(url, "enable")
msg.post(url, "disable")

But sometime I need to `enable/disable` go with all the children.

For example the go named **"cell"**:

Image

In this case I need to disable all other gameobjects: **"cell_back"**, **"cell_pos"**, etc

Maybe it would be better to add separate messages like **"disable_all"** or **"disable_with_children"**?

This is how **nodes** work in GUI. You can simply `disable/enable` the parent **node**

Contributor guide

Open the contributing guide

Research direction

Start by tracing the msg.post enable/disable entry points and how gameobject parent-child relationships are handled. Determine the intended API for applying the state to a parent and all children, then verify that enabling or disabling the parent produces the expected state for every child.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.