Make shallow copies of resources

This commit is contained in:
Marco 2025-02-14 14:24:26 +01:00
commit 0203af4642
8 changed files with 55 additions and 15 deletions

View file

@ -0,0 +1,15 @@
using Godot;
namespace Cirno.Scripts.Resources.TestGeneric;
[GlobalClass]
public partial class GenericTestResourceBase : Resource
{
[Export]
public int Value { get; set; }
public void Test()
{
var asfd = this.MemberwiseClone() as GenericTestResourceBase;
}
}