mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Manage all Assets with ContentManager
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user