stride
stride copied to clipboard
Duplication of Entith with List<T> variable crashes editor
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:
- Create script with a List<T> variable
- Add script to any Entity
- Select the Entity
- 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()
{
}
}