Change Assets Volume

VamFan

New member
Messages
1
Reactions
0
Points
1
Hello,

i have a Assetsbundle(not from me, no source) with Sound, but the volume are to high, so i can hear nothing else.
How can i change volume of the assetbundle? I can't find any Option.
Can i accesss this with a PlugIn and change this with c#?

Thanks and have a nive Day

VamFan
 
No, the volume is in the file. You can only change the volume of your AudioSource, Person Head Audio or whatever is playing audio in your scene, which would affect all audio played through that source.

Technically you could have a plugin that overrides the volume setting for each file it plays with the correct value from some database. My Life plugin does that to some degree. Means you can't manually use the volume slider anymore, as the plugin constantly overrides it.
 
Regarding that, would it be possible to HAVE a volume setting attached to a CUA that has sound in(/on?) it? As I have seen CUA's that use C# to alter doors, lights,etc. ? Or maybe a sort of generic plugin that could change values in a CUA - if one knows the names of the "parts". (Just asking, a supplicant at the foot of the dais.)?
 
Regarding that, would it be possible to HAVE a volume setting attached to a CUA that has sound in(/on?) it? As I have seen CUA's that use C# to alter doors, lights,etc. ? Or maybe a sort of generic plugin that could change values in a CUA - if one knows the names of the "parts". (Just asking, a supplicant at the foot of the dais.)?
That's easy to do as a plugin. Just a volume slider that applies to all AudioSources inside the CUA.
(Spend a bit longer than anticipated on this, making sure it actually works and covers things like changing the CUA afterwards. Patreon pledge would be appreciated, but it's optional. Unless you are already a Patreon of mine of course...have not checked ;) )

Here you go. License terms are CC BY-SA as usual.
 

Attachments

  • CUAVolume.cs
    2 KB · Views: 0
Back
Top Bottom