stride icon indicating copy to clipboard operation
stride copied to clipboard

Duplication of Entith with List<T> variable crashes editor

Open YerkoAndrei opened this issue 1 year ago • 0 comments

Release Type: Official Release

Version: 4.2.0.2122

Platform(s): Windows (Editor)

Describe the bug When duplicate (ctrl + d) an entity with a script with a not null List<T> variable, the editor crashes

To Reproduce Steps to reproduce the behavior:

  1. Create script with a List<T> variable
  2. Add script to any Entity
  3. Select the Entity
  4. Duplicate with ctrl + d

Expected behavior Entity should duplicate with references

Log and callstacks In this Crash i use a script in the Entity "Botón (Amarillo)" Crash.txt

Additional context Example class:

using System.Collections.Generic;
using Stride.Engine;

namespace Example;

public class CrashExample : StartupScript
{
    public List<Entity> entities = new List<Entity> { };

    public override void Start()
    {

    }
}

YerkoAndrei avatar May 20 '24 00:05 YerkoAndrei