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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment