"Build and Run" button will fail to find derived material during build
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: 3.0.0.6
Platform(s): Windows
Describe the bug
When using an empty project with a derived material, pressing the "Build Project and run" (Play button) will fail to build the project with the builder not being able to find the Sphere-Material. Build will complete without error when selecting the "Build"-Button (next to the Play-Button).
Trying to run the project using the Play-Button will work normally before adding the derived material.
To Reproduce
Steps to reproduce the behavior:
- Create a new (empty) project, leave defaults as is
- Select Sphere-Material and select "Create derived asset"
- Assign that material to the sphere
- Edit the newly created material, (changed only gloss map value in attached example)
- Try to run the project using the Play Button, will fail
Expected behavior
"Build" and "Build and Run" button should both complete a build successfully, as "Build" will complete the entire build process without issue, subsequent runs of the "Build and Run" (Play Button) will complete normally.
Screenshots

Log and callstacks
Build output.txt
Additional context
Eideren: Slightly edited the repro to include one more necessary step.
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 failure using the listed empty-project steps, then compare the attached build output with a successful Build-button run. Trace why Build and Run cannot find the derived Sphere-Material; done means both Build and Build and Run complete successfully after editing the derived material.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100