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