Hello,
I want to provide two modes for editing with the editor.
One full-featured editor with all tools (EditorToolSets.All) and one mode with none or only custom tools and I want to switch between the modes.
So I tried somethink likse this:
private List<IEditorTool> tools { get; set; } = new List<IEditorTool>();
protected override Task OnInitializedAsync()
{
tools = EditorToolSets.All;
tools.Add(new CustomTool("MyTool");
}
private void SwitchModel(MyMode mode)
{
if (mode == MyMode.Full)
{
tools = EditorToolSets.All;
}
if (mode == MyMode.None)
{
tools = Clear;
}
}