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

feat: editing in prefab mode #295

Open
poi-vrc opened this issue Oct 21, 2023 · 1 comment
Open

feat: editing in prefab mode #295

poi-vrc opened this issue Oct 21, 2023 · 1 comment

Comments

@poi-vrc
Copy link
Owner

poi-vrc commented Oct 21, 2023

can be achieved by reading current prefab stage via PrefabStageUtility

#if UNITY_2021_2_OR_NEWER
using PrefabStage = UnityEditor.SceneManagement.PrefabStage;
#elif UNITY_2018_3_OR_NEWER
using PrefabStage = UnityEditor.Experimental.SceneManagement.PrefabStage;
#else
#error The current Unity version does not support PrefabStage.
#endif
@poi-vrc
Copy link
Owner Author

poi-vrc commented Oct 21, 2023

related to #293 that shows message if a user attempts to edit in prefab mode

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

No branches or pull requests

1 participant