static void Init() { //Debug.Log("################ Init"); RefreshDisclaimerPref(); // Get existing open window or if none, make a new one: Instance = (EcosystemBrowser)EditorWindow.GetWindow (typeof (EcosystemBrowser)); Instance.position = new Rect(100,100, 430,500); Instance.minSize = new Vector2(430,500); Instance.titleContent.text = "Ecosystem"; // init static vars PlayMakerEcosystemFiltersLength = Enum.GetNames(typeof(PlayMakerEcosystemFilters)).Length; }
static void Init () { //Debug.Log("################ Init"); RefreshDisclaimerPref(); // Get existing open window or if none, make a new one: Instance = (EcosystemBrowser)EditorWindow.GetWindow (typeof (EcosystemBrowser)); Instance.position = new Rect(100,100, 430,600); Instance.minSize = new Vector2(430,600); #if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_5 || UNITY_4_6 || UNITY_5_0 Instance.title = "Ecosystem"; #else string _ecosystemSkinPath =""; GUISkin _ecosystemSkin = MyUtils.GetGuiSkin("PlayMakerEcosystemGuiSkin",out _ecosystemSkinPath); Texture _iconTexture = _ecosystemSkin.FindStyle("Ecosystem Logo Embossed @12px").normal.background as Texture; Instance.titleContent = new GUIContent("Ecosystem",_iconTexture,"The Ecosystem Browser"); #endif // init static vars PlayMakerEcosystemFiltersLength = Enum.GetNames(typeof(PlayMakerEcosystemFilters)).Length; }