docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 null.

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)