How do I set my Graphics Emulation to No Emulation as its default state? Since it changes back to OpenGL ES when I restart Unity.
I’ve tried:
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class Watchtower
{
static Watchtower()
{
Debug.Log("Watchtower");
EditorApplication.ExecuteMenuItem("Edit/Graphics Emulation/No Emulation");
}
}
But it gives me this error:
ExecuteMenuItem failed because there is no menu named 'Edit/Graphics Emulation/No Emulation'
@hu_amao That is an amazing piece of code! It does work ! Albeith while building, this doesnt build for android. …it gives an error:
The name ‘EditorApplication’ doesnt exist in the current context…