stride
stride copied to clipboard
Editor bug import asset warning bug within the game project
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:
- Create TopDown RPG template
- Go to existing Resources folder, add new raw resource (or just use an existing asset) and drag-drop into the asset sub-window
- 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