File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ void DrawDatabase () {
153153
154154 bool LoadDatabaseFromPath ( string absolutePath ) {
155155 string relativePath = absolutePath . GetRelativeUnityAssetPath ( ) ;
156- LSDatabase database = AssetDatabase . LoadAssetAtPath ( relativePath , DatabaseType ) as LSDatabase ;
156+ LSDatabase database = AssetDatabase . LoadAssetAtPath < LSDatabase > ( relativePath ) ;
157157 if ( database != null ) {
158158 LoadDatabase ( database ) ;
159159 return true ;
Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ public static string GetRelativeUnityAssetPath(this string absolutePath)
675675 {
676676 relativePath = absolutePath ;
677677 }
678-
678+ Path . GetFileNameWithoutExtension ( relativePath ) ;
679679 return relativePath ;
680680 }
681681
You can’t perform that action at this time.
0 commit comments