Example #1
0
        static Expose GetExposedPackages()
        {
#if UNITY_2019_1_OR_NEWER
            return(Expose.FromType(tPackageCollection)["packages"]);
#else
            if (_exPackageWindow == null || !_exPackageWindow.As <EditorWindow>())
            {
                _exPackageWindow = GetExposedPackageWindow();
            }
            return(_exPackageWindow["Collection"] ["packages"]);
#endif
        }