Merge branch 'open-file-item' of https://github.com/Tryibion/FlaxEngine into Tryibion-open-file-item

This commit is contained in:
Wojtek Figat
2024-10-07 10:21:43 +02:00

View File

@@ -32,6 +32,14 @@ namespace FlaxEditor.Content
/// <inheritdoc />
public override EditorWindow Open(Editor editor, ContentItem item)
{
#if PLATFORM_WINDOWS
CreateProcessSettings settings = new CreateProcessSettings
{
ShellExecute = true,
FileName = item.Path
};
Platform.CreateProcess(ref settings);
#endif
return null;
}