public void OnEnable() { //Debug.LogWarning("SkyEditor refreshed " + DateTime.Now); //Debug.LogWarning("Version of the runtime: " + Application.unityVersion); marmosetLogo = Resources.Load("marmosetLogo") as Texture2D; skyshopLogo = Resources.Load("skyshopLogo") as Texture2D; inSKY = new CubemapGUI(CubemapGUI.Type.INPUT, false); outSKY = new CubemapGUI(CubemapGUI.Type.SKY, false); outDIM = new CubemapGUI(CubemapGUI.Type.DIM, false); outSIM = new CubemapGUI(CubemapGUI.Type.SIM, false); inSKY.inspector = true; inSKY.allowTexture = true; ps.init(); }