Esempio n. 1
0
        //Store values in the volatile SessionState
        static void Init()
        {
            GetRootFolder();

            //Check Substance installation
#if UNITY_2018_1_OR_NEWER
            SessionState.SetBool("SUBSTANCE_INSTALLED", FAE_Core.SubstanceInstalled());
#endif
        }
Esempio n. 2
0
        //Store values in the volatile SessionState
        static void Init()
        {
            //Check Substance installation
#if UNITY_2018_1_OR_NEWER
            SessionState.SetBool("SUBSTANCE_INSTALLED", FAE_Core.SubstanceInstalled());
#endif

            //Get script path
            string[] res            = System.IO.Directory.GetFiles("Assets", "FAE_Core.cs", SearchOption.AllDirectories);
            string   scriptFilePath = res[0];

            //Truncate to get relative path
            SessionState.SetString("PATH", scriptFilePath.Replace("\\Scripts\\Editor\\FAE_Core.cs", string.Empty));

            //Debug.Log(SessionState.GetString("PATH", ""));

            //Load banner image
            SessionState.SetString("HEADERIMG_PATH", SessionState.GetString("PATH", "") + "Scripts/Editor/Images/FAE_Banner.png");
        }