Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabGroup active tab persistence #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haywirephoenix
Copy link

Adds the ability for TabGroups to store the active tab since they currently reset on domain reload.

The persistence works by:

  • Creating a unique identifier for each tab group based on the object instance ID and property path
  • Storing the active tab name in Unity's EditorPrefs using this identifier as the key
  • Loading the saved tab selection when the tab group is initialized

Features:

  • Persists across domain reloads
  • Lightweight and doesn't require additional serialization
  • Scoped to the specific Unity project
  • Works with TabGroups on multiple objects simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant