Table of Contents

Class NativeFolderPicker

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Opens the operating system's "choose a folder" dialog.

public static class NativeFolderPicker
Inheritance
NativeFolderPicker
Inherited Members

Remarks

Windows only. Unity exposes no runtime folder picker — EditorUtility.OpenFolderPanel exists solely in the Editor — so this is a direct shell call, and the other platforms the launcher supports would each need their own backend (GTK/portal on Linux, Cocoa on macOS).

IsSupported is false everywhere else and callers are expected to hide the browse affordance rather than offer a button that does nothing. The path text field remains the way to set a folder on every platform, so nothing is unreachable without this — it is a convenience over that field, not the only route to it.

Properties

IsSupported

True when a native folder dialog can be shown on this platform.

public static bool IsSupported { get; }

Property Value

bool

Methods

PickFolder(string)

Shows the folder dialog and returns the chosen path, or null when the player cancelled or no dialog is available.

public static string PickFolder(string title)

Parameters

title string

Prompt shown above the folder tree.

Returns

string

Remarks

Every failure returns null rather than throwing. This is reached from a UI callback on the launcher — the screen that, if it breaks, leaves no way into the game — and a shell call that misbehaves must cost the convenience, not the launcher.