#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)
What do you mean by "mute image"?
Usually mute means to turn a sound off... No volume...
yes
Yes do to two images (speaker on/off icons)
No matter what I did, it didn't work out, What your graph does now?
That would be similar.
First verify that your event node works in playmode. It should turn blue. That node that says "on button click"
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.
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?
@torn ibex
🤔
Pls to message send it oh @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
What do you mean?
now is Audio Source added and debug . but how to use got VR Input?
Now the Audio Source is added and debugged, but how can I use the VR Input with controllers?
🤔 
Im sorry. I have not done any VR work done so i might not help in that specific area
