Exemple #1
0
        //--------------------------------------------------------------------------------------------/
        // Messages
        //--------------------------------------------------------------------------------------------/
        protected override void OnInitializeDisplay()
        {
            base.OnInitializeDisplay();
            var stratusPath = StratusIO.GetFolderPath("Stratus");

            icon = AssetDatabase.LoadAssetAtPath(stratusPath + path + iconName, typeof(Texture2D)) as Texture2D;
        }
        private static void Export(ExportPackageArguments arguments)
        {
            string location = StratusIO.GetFolderPath(arguments.path);

            AssetDatabase.ExportPackage(location, $"{arguments.name}.unitypackage", arguments.options);
            EditorUtility.RevealInFinder(location);
            StratusDebug.Log($"Exported {arguments.name} to {location}");
        }
        //------------------------------------------------------------------------/
        // Procedures
        //------------------------------------------------------------------------/
        private static void Export(string path, string packageName)
        {
            string location = StratusIO.GetFolderPath(path);

            AssetDatabase.ExportPackage(location, $"{packageName}.unitypackage",
                                        ExportPackageOptions.Recurse | ExportPackageOptions.Default |
                                        ExportPackageOptions.Interactive);
            StratusDebug.Log($"Exported {packageName} to {location}");
        }