Add asset open handler system and async open support

Introduced AssetOpenHandlerAttribute for extension-based asset open logic.
Implemented async OpenAssetAsync methods in IAssetRegistry and AssetRegistry, using reflection to invoke handlers.
Updated ContentBrowser and ViewModel to support async asset opening.
Refactored Hierarchy initialization and XAML for clarity.
Logger now throws exceptions in DEBUG for errors/asserts.
Removed unused code and cleaned up usings.
This commit is contained in:
2026-05-23 13:05:25 +09:00
parent a1c5ccf937
commit 5222e801b9
12 changed files with 102 additions and 44 deletions

View File

@@ -19,6 +19,19 @@ public class CustomEditorAttribute : DiscoverableAttributeBase
}
}
public class AssetOpenHandlerAttribute : DiscoverableAttributeBase
{
internal string[] Extensions
{
get;
}
public AssetOpenHandlerAttribute(params string[] extensions)
{
Extensions = extensions;
}
}
[AttributeUsage(AttributeTargets.Method)]
public sealed class ContextMenuItemAttribute : DiscoverableAttributeBase
{