stride3d / stride3d/stride

Allow including all assets as RootAsset with a flag

Open
#1,369 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Is your feature request related to a problem? Please describe.
In code only scenarios where editor isn't used it is tedious to mark each new asset as RootAsset by manually editing the .sdpkg and adding the Guid+Url there.

Describe the solution you'd like
Add an optional flag to Package called IncludeAllAssetsAsRoot which treats all assets from the Assets folder of that package as root assets. The flag may also be added in the editor and would require changes to put visual marker of root assets on each asset in the asset view.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Package metadata in the .sdpkg is read and how assets under the package's Assets folder become RootAsset entries. Review the editor asset view if editor support is included; done means the optional IncludeAllAssetsAsRoot flag works for code-only scenarios and root assets are visibly marked where applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.