Skip to content

Instantiating a disabled template causes unexpected behavior #7856

@tatelax

Description

@tatelax

Steps to reproduce:

  1. Create disabled entity template with 1 child entity
  2. Reference template via inspector attributes
  3. Instantiate several of them
  4. Instantiate another template and reparent it to the child of the last disabled entity that was instantiated in the previous step.

Bug: The template which references the child of the last disabled entity will reference the child of the first entity that was instantiated.

Workaround:

Ensure that a disabled entity is enabled after instantiation before you reference any scripts or children on it. Or, do not default templates to disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions