Manage all Assets with ContentManager

This commit is contained in:
Simon Lübeß
2025-02-16 01:02:41 +01:00
parent 25e1c53a08
commit 49c3e93e08
10 changed files with 57 additions and 33 deletions
+2 -2
View File
@@ -1062,7 +1062,7 @@ static class ScriptGlue
using (material = new Material(material, true))
{
material.Identifier = scope $"(Instance) {material.Identifier}";
Content.ManageAsset(material);
//Content.ManageAsset(material);
spriteRenderer.Material = material.Handle;
}
}
@@ -1183,7 +1183,7 @@ static class ScriptGlue
using (material = new Material(material, true))
{
material.Identifier = scope $"(Instance) {material.Identifier}";
Content.ManageAsset(material);
//Content.ManageAsset(material);
meshRenderer.Material = material.Handle;
}
}