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(); }
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(); }