Exemplo n.º 1
0
        static void Make()
        {
            if (window == null)
            {
                window = PackageMaker.GetWindow <PackageMaker>();
            }

            var path = AssetDatabase.GetAssetPath(Selection.activeObject);

            if (string.IsNullOrEmpty(path) == false)
            {
                window.path = path;
                var fullpath = Path.GetFullPath("Assets");
                window.Load(fullpath);
            }

            window.ShowPopup();
            window.Focus();
        }
Exemplo n.º 2
0
        static void Make()
        {
            if( window == null ){
                window = PackageMaker.GetWindow<PackageMaker>();
            }

            var path = AssetDatabase.GetAssetPath( Selection.activeObject );
            if( string.IsNullOrEmpty( path ) == false ){
                window.path = path;
                var fullpath = Path.GetFullPath("Assets");
                window.Load(fullpath);
            }

            window.ShowPopup();
            window.Focus();
        }