using GlitchyEngine.Core; namespace GlitchyEngine.Graphics; /// /// Renders a Mesh. The Mesh can be specified by adding a component to the same . /// public class MeshRenderer : Component { /// /// Gets or sets the Material of this . /// /// /// If you get the and it is not yet a runtime-instance, /// a new runtime-instance will be created and returned in its place. /// public Material Material { get { ScriptGlue.MeshRenderer_GetMaterial(_uuid, out UUID materialHandle); return new Material { _uuid = materialHandle }; } set => ScriptGlue.MeshRenderer_SetMaterial(_uuid, value._uuid); } }