Editor bug import asset warning bug within the game project
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning and crash with the TopDown RPG template, then compare its .sdpkg ResourceFolders: [] with the New game template's declared Resources folder. Trace the editor's raw-asset import and copy prompts; done means packages without explicitly declared resource folders are handled without incorrect warnings or an editor crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100