3 Hours Ago
Wrap proprenderer editor stuff in UNITY_EDITOR Try checking EditorApplication.isPlaying as well