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

Replace game object in scenes with new prefab. #1

Open
acoppes opened this issue Jan 3, 2024 · 0 comments
Open

Replace game object in scenes with new prefab. #1

acoppes opened this issue Jan 3, 2024 · 0 comments

Comments

@acoppes
Copy link
Owner

acoppes commented Jan 3, 2024

This could be useful when there are multiple scenes with a similar object and you want to extract a prefab from one of the scenes but also fix all scenes to use the same prefab.

How to identify it is the same object? well, one option could be to find objects with same name and same structure (mono behaviours, children objects, etc, for example), maybe it could be serialized and check serialized versions.

Once detected, create prefab from one scene, switch all other scenes to use that prefab using replace utilities.

It could be done in two steps, like creating the prefab manually, and then selecting the prefab and call the replace game objects that are not prefab instances but match the prefab serialization with new prefab.

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