public override void OnInspectorGUI() { // Let the default inspecter draw all the values DrawDefaultInspector(); // Spawn buttons if (GUILayout.Button("Set Camera to Scene View")) { Transform cameraPos = SceneView.lastActiveSceneView.camera.transform; targetScreenshotHelper.MoveCamera(cameraPos); } if (GUILayout.Button("Capture upscaled Screenshot")) { targetScreenshotHelper.CaptureScreenshot(); AssetDatabase.Refresh(); } if (GUILayout.Button("Refresh to show images")) { AssetDatabase.Refresh(); } }