Hi all…
Is there any way I can access the Apply button on top right corner of the inspector using script ?
Note: Never Mind, I found a way to do it.
EditorApplication.ExecuteMenuItem("GameObject/Apply Changes To Prefab");
did the trick.
Hi all…
Is there any way I can access the Apply button on top right corner of the inspector using script ?
Note: Never Mind, I found a way to do it.
EditorApplication.ExecuteMenuItem("GameObject/Apply Changes To Prefab");
did the trick.
Omg, nice! I never knew you could do that!
You can also use the PrefabUtility class for example to manage prefabs