#AudioMixer + Content Manager bug on build
1 messages · Page 1 of 1 (latest)
"Unity bundles both strongly-referenced and weakly-referenced objects into the same content archives, but handles them differently at runtime.
"
Do it bundles strong references outside subscene on same bundle? i`m using a strong reference on game UI
They work, but any mixer loaded from subscenes is unique to subscenes
And it doesn't match ane from normal scene
So if you want to modify it's properties in runtime - get reference to subscene mixer
one per all subscenes
Do you recommend and a way to share it?
Is there any way to load from mono behaviour side without a messy code?
don't see any troubles with it tbh
except this
if you want to use mono behaviours as separate entry point into loop - you are going to have such troubles
just getting audio mixer from some managed singleton is good enough
and then audio system that is responsible for modifying mixer values - does it directly
oor
it calls mono behaviour methods
if you find it easier
I found a way to share it.
{
if (RuntimeContentManager.GetObjectLoadingStatus(AudioMixerReference) == ObjectLoadingStatus.None)
{
RuntimeContentManager.LoadObjectAsync(AudioMixerReference);
}
if (RuntimeContentManager.GetObjectLoadingStatus(AudioMixerReference) == ObjectLoadingStatus.Completed)
{
AudioMixer = RuntimeContentManager.GetObjectValue<AudioMixer>(AudioMixerReference);
UpdateAudioMixer();
}
}```
I have this on my SettingsWindow.cs (MonoBehaviour) and is working
I don`t like .. it is ugly but works
then just do it the clean way? 😅
store it on managed icd in subscene
and load with subscene
It is not working on build. I will try with subscene
you mean this doesn't work in build?
Yes, it does not
but the UntypedWeakReferenceId was stored on mono behaviour
oh right
those can only be stored in subscenes
otherwise content management doesn't know it needs to be included
so in any case - you must load via subscene
just so turn your Unity events on your manager into custom ones
It is included already because i have other references on subscene but anyway i will create a singleton only for it
and call them from system
https://technology.riotgames.com/news/valorants-128-tick-servers
Is it worth it at all? 128 ticks server, local prediction and it is still bad at 60ms
with higher tickrate - you have less ticks to predict