Interact with Materials from scripts

This commit is contained in:
Simon Lübeß
2025-02-14 11:54:07 +01:00
parent e5437c6ff6
commit aaed4199d3
24 changed files with 739 additions and 64 deletions
+22
View File
@@ -0,0 +1,22 @@
using GlitchyEngine.Core;
namespace GlitchyEngine.Graphics;
/// <summary>
/// The base class for all assets.
/// </summary>
public class Asset : EngineObject
{
/// <summary>
/// Gets or sets the Identifier of the asset.
/// </summary>
public string Identifier
{
get
{
ScriptGlue.Asset_GetIdentifier(_uuid, out string identifier);
return identifier;
}
set => ScriptGlue.Asset_SetIdentifier(_uuid, value);
}
}