@@ -71,6 +71,11 @@ private string CollisionMeshDirectory {
7171 get { return Path . Combine ( RootExportDirectory , "collision_meshes" ) ; }
7272 }
7373
74+ // Asset Bundles Directory
75+ private string AssetBundlesDirectory {
76+ get => "AssetBundles" ;
77+ }
78+
7479
7580 /// <summary>
7681 /// The directory that is importing from.
@@ -138,6 +143,10 @@ void DoImport() {
138143 if ( Directory . Exists ( CollisionMeshDirectory ) == false ) {
139144 Directory . CreateDirectory ( CollisionMeshDirectory ) ;
140145 }
146+ if ( Directory . Exists ( AssetBundlesDirectory ) == false ) {
147+ Directory . CreateDirectory ( AssetBundlesDirectory ) ;
148+ }
149+
141150
142151
143152 // read all components and load any assets like visual and collision meshes
@@ -197,7 +206,7 @@ void DoImport() {
197206
198207 // build the asset bundle
199208 Debug . Log ( "INFO: Building asset bundles..." ) ;
200- BuildPipeline . BuildAssetBundles ( "AssetBundles" , BuildAssetBundleOptions . None , BuildTarget . StandaloneLinux64 ) ;
209+ BuildPipeline . BuildAssetBundles ( AssetBundlesDirectory , BuildAssetBundleOptions . None , BuildTarget . StandaloneLinux64 ) ;
201210
202211
203212 ZeroSimProjectFile = null ; // need to reset
@@ -305,7 +314,7 @@ static void ApplyRandomColors() {
305314 if ( selectedGo != null ) {
306315 MeshRenderer [ ] meshRenderers = selectedGo . GetComponentsInChildren < MeshRenderer > ( ) ;
307316 foreach ( MeshRenderer meshRenderer in meshRenderers ) {
308- meshRenderer . sharedMaterial . color = UnityEngine . Random . ColorHSV ( 0f , 1f , 1f , 1f , 0.85f , 1f ) ;
317+ meshRenderer . sharedMaterial . color = UnityEngine . Random . ColorHSV ( 0f , 1f , 1f , 1f , 0.5f , 1f ) ;
309318 }
310319
311320 }
0 commit comments