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
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
- Incorrect rotations on bones when importing FBX animations with a Humanoid Rig
- Render Graph Viewer “Pass List” section is flickering when resizing vertically and the Render Graph Viewer window is docked
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
Add comment