Search Issue Tracker
By Design
Votes
0
Found in
5.3.1f1
Issue ID
756384
Regression
No
[AudioClip] GetData() returns only zeroes if no AudioSource is found
Repro steps:
1) Open the project
2) Add the Foo script to any object
3) Click Play and notice that console throws an error that says all 0's (That's because AudioClip.GetData() only received 0)\
4) Drag and drop Resources -> 01 to any object
5) Play and notice the console shows Success (Means GetData works as supposed, because of AudioSource)
Workaround: Add an AudioSource component and attach the clip, whose data you want to get
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
- Crash on UnityEngine.UI.RawImage:OnPopulateMesh when playing Raw Image Texture animation with Sprite keyframes
- 32bit floating point RenderTexture blending feature is not available for WebGPU
Add comment