Hi!
I have two RawImages in my project.
First Raw Image is fullscreen, second item is centered.
There is a Panel and toggle group.
I have three movie textures.
I want to use my toggle-buttons for changing movie textures in second RawImage.
Please help me to understand how make this:)
Unity version is 5.2.1
Since toggle is true or false so you could only change two image based on true or false.
Just create a script with public gameobject that refer to your sprite
Then write a public function inside that contains a boolean parameter
then if…else statement
if(true)
rawImage2.sprite = spriteA;
else
rawImage2.sprite = spriteB;
Add a OnValueChanged
then refer to the object that this script attached on
1 Like