Good morning everyone,
I have this weird issue: when I’m trying to access the volume of my audiosource variable my visual studio doesn’t show me this option and (obviously) doesn’t recognize it.
What am I doing wrong?
Good morning everyone,
I have this weird issue: when I’m trying to access the volume of my audiosource variable my visual studio doesn’t show me this option and (obviously) doesn’t recognize it.
What am I doing wrong?
Why did you name your class “AudioSource”, exactly the same name as something that already exists, and something that you are actually trying to use inside this same object?
The reason src doesn’t have a volume is because it’s YOUR AudioSource class, it’s not the Unity AudioSource class.
So, src.Slider will be a thing that exists, because your AudioSource has a Slider field, but it doesn’t have a volume field. you’re using the wrong AudioSource.
Name things properly.
What a dumb am I?