Skip to content

Custom Object's object variable structures won't "For every child..." inside the custom object function events #7700

@Sapper-Morton

Description

@Sapper-Morton

Is there an existing issue for this?

Describe the bug

Inside Custom object's events I cannot do for every child Object.myStructure or Object.Variable(myStructure) ... because it is not recoqnized as object variable structure. Should it?

What I can do in the function is directly address a child inside the structure and read it into a scene variable: like this: Object.Variable(myStructure["Test"]). This gives the value of the child variable.

Steps to reproduce

  1. Create a custom object.
  2. Create a structure variable for the custom object.
  3. Create Custom object extension function in which you do: For each child the object variable
  4. does not work.

GDevelop platform

Desktop

GDevelop version

5.5.233

Platform info

Linux

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions