Skip to content

Scripts: Array of script based components leads to crash #1129

Description

@eprikazchikov

Description

Array of script based components leads to crash

Prerequisites

class Building : Behaviour {
    array <Building@> neighbours;

    // Use this to initialize behaviour
    void start() override {

    }

    // Will be called each frame. Use this to write your game logic
    void update() override {

    }
};

Steps to Reproduce

  1. Create an Angel script with flowing content
  2. Create an Actor with this component
  3. Restart the Editor
  4. Check the Properties

Expected behavior:

  1. The Editor restarted

Actual behavior:

  1. Application crashed

Reproducibility:

100%

Versions

2025.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Next release is blocked by this issue

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Done for Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions