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. Code (csharp): EditorApplication.ExecuteMenuItem("GameObject/Apply Changes To Prefab"); did the trick.