How to change the opacity of the model using the slider

Hi Folks,

I have imported the Vuforia Eyewear sample project into Unity and built the Model Target application for Magic Leap 2. How can I change the opacity of the model using a slider? Any script for adjusting the model's opacity/transparency with a slider would be greatly appreciated.

BR
Sandy

You can use the Slider.onValueChanged SliderEvent to update the material's transparency value.

1 Like

Unfortunately since this is not specific to Magic Leap, the question on how to use the Mixed Reality Slider or UI slider is outside of the scope of this forum. I recommend reaching out on the MRTK GitHub or the Unity discussion page https://discussions.unity.com/.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.