Always after I press play the Editor switch to game view. But I want to stay in scene view. In the tutorial videos I saw that this is possible, but how?
Found on stack overflow and checked in unity:
using UnityEngine;
using System.Collections;
public class KeepSceneAliveScript : MonoBehaviour
{
public bool KeepSceneViewActive;
void Start()
{
if (this.KeepSceneViewActive && Application.isEditor)
{
UnityEditor.SceneView.FocusWindowIfItsOpen(typeof(UnityEditor.SceneView));
}
}
}
The script is working fine. Thank you.
This script is making Unity Crash