Search Issue Tracker
By Design
Votes
0
Found in
5.4.0b21
Issue ID
805380
Regression
No
Generating a scene procedurally via editor scripting and setting the AudioSource.spatialBlend of a prefab causes errors
How to reproduce:
1. Open attached project ant the "TestCode.cs" file in it.
2. Observe the comments in the script and notice that the 'child' GameObject is assigned the name "Child" and is reparented to be a children of 'Root'.
3. Execute from Editor main menu by clicking BugReport -> Create Scene and observe that 'child' is using the name "Classic_E01_F01_Config" and that it is not parented under the 'Root' GameObject.
4. Remove the line "audio.spatialBlend = 0" from the script and execute "BugReport -> Create Scene" again. Observe the name is correct and it's also parented under the 'Root' GameObject.
Reproducible: 5.2.4f1, 5.3.5f1, 5.4.0b21
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Resources.UnloadUnusedAssets() freezes the Editor when releasing Mesh objects
- 16-bit Sprite Textures have a banding effect and loss of data when packing into Variant Sprite Atlas
- HDRP Cluster artifacts when having more than 100 lights
- ParticleCollisionEvent.intersection generates extremely high values when particles collide while in Play Mode
- Custom attributes are not properly converted to subgraphs
Add comment