Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity imports my assets as a custom package in a wrong directories.

Discussion in 'Package Manager' started by Andrew3371, May 12, 2023.

  1. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    Unity imports my assets as a custom package in a wrong directories. I've made an asset, put everything in one folder "SceneSelector" and exported this folder with all stuff in it.
    When I import it in another project (empty or not doesn't matter) it puts some files in wrong directories. Folder "Scenes" should be in "Assets/SceneSelector/Scenes", but importer maps it in "Assets/Scenes" instead. Why? I use Unity 2021.3.21f1.
    1.jpg 1-1.jpg
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Did you perhaps edit or duplicate the SampleScene of the original project rather than creating a new scene?
     
  3. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    Yes, usually I use "save as" from the current scene to create a new one :rolleyes:

    I guess in previous Unity versions (2019.2 for example) I didn't face such problems.
     
    Last edited: May 15, 2023
  4. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    I discovered that it behaves differently depending on what folders exist in the project I import it in.
    if i already have "Assets/Scene" folder it imports scenes in this folder.
    if i don't have such folder then it behaves normally and imports all in "Assets/SceneSelector/Scenes" as I expected it should be.
     
  5. Andrew3371

    Andrew3371

    Joined:
    Mar 27, 2023
    Posts:
    23
    Still hoping for help, bros.