Keep things selected across scene loads.
Usually your selection is lost once another scene is loaded. This plugin restores your selection after each scene load in PLAY mode.
Full source code included
Tiny files size (< 40 KB)
It is pure code which is placed in Plugins/Editor by default.
Compatible with Unity 5.4+, 2017, 2018, 2019, 2020, 2021, 2022, ..
Yes, it's been around for a while ;-)
Installation
Download the Asset and import it into your project. You are done, no additional setup is needed.
A new menu called "Selection Keeper" will be available under "Tools" in the main menu bar. Go check it out once the import is done.
Info: the asset files will be copied into /Assets/Plugins/SelectionKeeper/Editor. The settings and manual files will be created in the same location.
Known Issues
* Objects which are marked as "Do not destroy on load" will not be re-selected in PLAY mode. This is a Unity limitation.
在加载场景时保持所选内容。
通常情况下,一旦载入另一个场景,您的选择就会丢失。此插件可在 PLAY 模式下每次加载场景后恢复您的选择。
包含完整源代码
文件小(< 40 KB)
纯代码,默认放在 Plugins/Editor 中。
兼容 Unity 5.4+、2017、2018、2019、2020、2021、2022、...
是的,它已经存在一段时间了;-)
安装
下载 Asset 并将其导入您的项目。这样就完成了,无需额外设置。
主菜单栏的 "工具 "下将出现一个名为 "Selection Keeper "的新菜单。导入完成后,请前往查看。
信息:资产文件将被复制到 /Assets/Plugins/SelectionKeeper/Editor 中。设置和手动文件将在同一位置创建。
已知问题
* 在 PLAY 模式下,无法重新选择标记为 "加载时不销毁 "的对象。这是 Unity 的限制。
|