Add default material for Radial Menu control

#2678
This commit is contained in:
Wojtek Figat
2024-06-11 15:56:32 +02:00
parent 54cb82cbda
commit 6fc056cba2
2 changed files with 5 additions and 2 deletions

BIN
Content/Engine/DefaultRadialMenu.flax (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -38,8 +38,7 @@ namespace FlaxEngine.GUI
if (_material == value) if (_material == value)
return; return;
_material = value; _material = value;
Object.DestroyNow(_materialInstance); Object.Destroy(ref _materialInstance);
_materialInstance = null;
_materialIsDirty = true; _materialIsDirty = true;
} }
} }
@@ -174,6 +173,7 @@ namespace FlaxEngine.GUI
ForegroundColor = style.BackgroundHighlighted; ForegroundColor = style.BackgroundHighlighted;
SelectionColor = style.BackgroundSelected; SelectionColor = style.BackgroundSelected;
} }
_material = Content.LoadAsyncInternal<MaterialBase>("Engine/DefaultRadialMenu");
} }
/// <summary> /// <summary>