- Home /
To "Apply" to the project by using a script?
It can be reflected in Project if the Apply button of Prefab in Inspector is pushed.
What should I do for carrying out the same function as Apply with a script?
How to return is found in the following way by the way. But I do not know how to apply.
PrefabUtility.RevertPrefabInstance(obj);
Any help would be appreciated, Thanks!
Comment
Best Answer
Answer by fukachan · Oct 11, 2012 at 09:03 AM
Since the answer was found, it indicates.
Thanks
PrefabUtility.ReplacePrefab(obj, PrefabUtility.GetPrefabParent(obj), ReplacePrefabOptions.ConnectToPrefab);