Exception when entity with two references to the same sound is assigned a parent
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
Platform(s): Windows
Describe the bug
If an entity has an audio component with two keys that reference the same asset, an exception is thrown when that entity (or its parent) is assigned a parent in a script.
To Reproduce
Steps to reproduce the behavior:
- make entities A and B
- Add audio emitter component to entity A
- Import some spatial sound
- Add two key/value pairs to the audio emitter, each of which reference the imported sound
- In a script, assign entity A to be a child of entity B.
Expected behavior
Not throw an exception, and assign the child as normal.
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
Start by reproducing the issue with two entities, an audio emitter on entity A, and two keys referencing the same imported spatial sound. Then inspect the entity-parenting path and audio emitter asset handling involved when A is assigned as a child of B. Done means the parent assignment completes without an exception and the child hierarchy remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- audio-video-rtc, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100