#oh make a sound and mute image or raw image in this for VR using Visual Scripting only

1 messages · Page 1 of 1 (latest)

indigo moat
#

I need to make a sound and mute image or raw image in this for VR using Visual Scripting only. How do I do it?this

torn ibex
indigo moat
#

yes

indigo moat
#

No matter what I did, it didn't work out, What your graph does now?

torn ibex
#

Then you want to toggle that button?

Means one click, mutes and show speaker X image.

Second click, unmute and show speaker High.

If thats the case... You could use a "Toggle" node

#

Connect event on button click to toggle node, so every click toggles it.

Then toggle on outout make audio mute and change image X.

On toggle out, make audio unmute and change image High.

===

And make sure you are using the right image node. "Raw image set texture" is the one component your gameObject has that is showing a speaker image?

Because your editor window shows an image but that appears to be a display of audio source.

Not an actual image component in the gameObject

The components i can see in your screenshot for "this" gameObject are:

Rect transform
Audio Source
Variables
Script Machine

And none of those are used to show image.

indigo moat
#

well how now to do is it but the correct?

#

how to Graph looks like this or no? [On Button Click]


[Get Variable (isMuted)]


[NOT Node] → [Set Variable (isMuted)]


[Branch]
┌───────────────┬───────────────────┐
│ True (Muted) │ False (Unmuted) │
▼ ▼
[Audio Set Mute] [Audio Set Mute]
(Speaker_on OFF) (Speaker_on ON)
(Speaker_off ON) (Speaker_off OFF)

#

I can see where it’s to fixing?

indigo moat
indigo moat
#

🤔

indigo moat
#

Pls to message send it oh @torn ibex .

indigo moat
torn ibex
#

this is the node I mentioned

#

something like this

#

notice the "image sprite set" must match your ui component

#

Since I think what you want is a UI element, not sure, it would look something like this. Notice the image component on the right

indigo moat
#

Audio Source how to do it?

#

next how to Audio Source do it?

torn ibex
#

What do you mean?

indigo moat
#

now is Audio Source added and debug . but how to use got VR Input?

indigo moat
#

🤔 tryitandsee

torn ibex