Skip to main content
Participant
November 13, 2019

Setting deafult value of AddSlider crashes app

var sliderPrefab = DebugUIBuilder.instance.AddSlider("some label", 0.1f, 30f, delegate (float f) { SliderAction(f); }, false);
sliderPrefab.GetComponentInChildren<Slider>().normalizedValue = 1f; // <<- this is culprit

//sliderPrefab.GetComponentInChildren<Slider>().value = 30f; // <<- this also crashes


crashes unity editor (2018.3.11f) and Android build for Quest with latest integration

any ideas on how to do this? 

Can anyone else reproduce it?



This topic has been closed for replies.

1 reply

Participant
November 21, 2019
just bumping this - can anyone help...

why does setting a slider value in the Oculus DebugUI cause a crash?