Skip to content

Add support for additional variable types when using "For each child variable (of a structure)" #2307

@tristanbob

Description

@tristanbob

Description

The new "For each child variable (of a structure)" function works only when using a single-level, scene, structure variable.

This function does not seem to use other types of variables, including:

  • Object variables
  • Multi-level variables (grandparent.parent.child)
  • Global variables

This request is to add support for these types of structure variables.

To Reproduce

Steps to reproduce the behavior:

  1. Create a structure variable from the list above
  2. Create a "For each child variable (of a structure)" event
  3. Create a sub-event that changes the background color (this simply confirms that the ForEach() loop was entered)
  4. Preview the game and see if the background changes

Other details

  • Tested on GDevelop beta 105

Example game

ShadowClone8.zip

Screenshot

Screenshot 2021-02-14 231619

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions