Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Bug The project path cannot contain a folder ending with "Assets"

Discussion in 'Addressables' started by Djayp, Sep 11, 2021.

  1. Djayp

    Djayp

    Joined:
    Feb 16, 2015
    Posts:
    114
    In AddressableAssetSettingsInspector.cs l.477 :

    Code (CSharp):
    1. var initObj = AssetDatabase.LoadAssetAtPath<ScriptableObject>(assetPath.Substring(assetPath.IndexOf("Assets/")));
    Could be :

    Code (CSharp):
    1. var initObj = AssetDatabase.LoadAssetAtPath<ScriptableObject>(assetPath.Substring(assetPath.IndexOf(Application.dataPath + "/")));
     
    Thygrrr likes this.