I can change it in the editor, but the script doesn’t seem to work
i am just setting the pitch equals to a float.
I can change it in the editor, but the script doesn’t seem to work
i am just setting the pitch equals to a float.
Are you sure you have the right AudioSource reference? Also it’s worth noting that the range of pitch is -3 to 3.
Now it works
i’m going to re-examine my code before resolving this bug … because it could be that the audiosource prevents pitch changes if the operation is invalid … i’m going to check right now
For the life of me, i cannot reproduce it anymore … even the past versions of the same script now work xD
for reference I was already aware of how unity handles stuff in the editor and in build, thus i tried getting the audio source in both methods, direct reference and GetComponent()
now everything works as it should
EDIT: i " DID " restart the editor tho … that might have been the cause of the problem