GetProperty returns null in build
Hey guys,
I tried to load the attached snapshots of my AudioMixer with this line:
AudioMixerSnapshot[] mySnapshots = (AudioMixerSnapshot[])myMixer.GetType().GetProperty("snapshots").GetValue(myMixer, null);
I works really well in Editor but when I build the game the GetProperty() always returns null.
Does anyone have an idea how to fix this?
Thank you!
EDIT: With myMixer.GetType().GetProperties(); I was able to see all propertys the mixer has. In the editor it's:
allGroups
numExposedParameters
exposedParameters
masterGroup
startSnapshot
TargetSnapshot
snapshots
CachedSelection
currentViewIndex
views
isSuspended
outputAudioMixerGroup
updateMode
name
hideFlags
But in build only those exist:
updateMode
name
hideFlags
Does anyone have an idea?
Somehow this seems like an bug to me
Your answer
Follow this Question
Related Questions
Problem with TextMesh Pro when running a build of the game - how to get the right text? 0 Answers
I can't catch Unity build errors via script 0 Answers
Problem using Linq result - Operation is not valid due to the current state of the object 1 Answer
Why I don't see objects after building game? 0 Answers
When playing builded version of game the cameras only captures part of scene. 0 Answers