Interface IWindowLayoutStorage
Where a FloatingWindow persists its geometry.
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public interface IWindowLayoutStorage
Remarks
Deliberately the same synchronous get / set / remove shape as the registry's
WindowLayoutStorage, so a host that already routes preferences somewhere — an editor
preference store, a cloud profile — can drop an adapter in. The default implementation is
PlayerPrefsWindowLayoutStorage.
Methods
GetItem(string)
Reads the value stored under key, or null when there is none.
Declaration
string GetItem(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The storage key. |
Returns
| Type | Description |
|---|---|
| string | The stored value, or |
RemoveItem(string)
Removes whatever is stored under key.
Declaration
void RemoveItem(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The storage key. |
SetItem(string, string)
Writes value under key.
Declaration
void SetItem(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The storage key. |
| string | value | The value to store. |