Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor bug import asset warning bug within the game project #2354

Open
Basewq opened this issue Jun 25, 2024 · 0 comments
Open

Editor bug import asset warning bug within the game project #2354

Basewq opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Basewq
Copy link
Contributor

Basewq commented Jun 25, 2024

Release Type: Official Release

Version: 4.1.0.1948+

Platform(s): Editor

Describe the bug
Adding a raw asset within the project solution and importing the asset warns importing assets are not inside resource folder when there is no ResourceFolders declared in the .sdpkg file.
Hitting Ok also prompts if you want to copy the asset in the resource folder.
Hitting Ok here will crash the editor.

The 'New game' template is one of the rare project templates that explicitly declare the resource folder in the .sdpkg file:

ResourceFolders:
    - !dir Resources

Other templates, eg TopDown RPG do not:

ResourceFolders: []

Futhermore, it places the Resource folder (and Asset folder) one level above the game project folder.

To Reproduce
Steps to reproduce the behavior:

  1. Create TopDown RPG template
  2. Go to existing Resources folder, add new raw resource (or just use an existing asset) and drag-drop into the asset sub-window
  3. Observe warning(s)

Expected behavior
Handle the special case where package's Resource folder(s) are not explicitly declared.

Additional context
Original feature introduced #1781
Copy raw asset into resource folder feature added here #1827

@Basewq Basewq added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant