• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Change Assets Volume

VamFan

New member
Joined
Jan 28, 2021
Messages
1
Reactions
0
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