Sandbox Logo

Window.SaveToStateCookie

void SaveToStateCookie()

Description

Called whenever the window should save its state via the <see cref="P:Sandbox.Internal.GlobalToolsNamespace.EditorCookie">EditorCookie</see> library, to be later restored in <see cref="M:Editor.Window.RestoreFromStateCookie" />. This is useful to carry data across game sessions.<br /> You should use <see cref="P:Editor.Window.StateCookie" /> in the cookie name.

Return

User Comments