Can i set up a widget to where if i click a button it plays a matinee and set visibility in a level?

is there any way to make a widget and then while using a button to execute something in a level? like set the visability of a mesh or play a matinee…i’m having trouble with trying to make a terminal that when you are close to it and press a button i want to play animation and toggle a mesh visability but i can’t get a reference to the mesh in the widget graph

i meant set visibility of a mesh with in the level

Hi,

since you can not have specific references to world objects inside widgets you must find your object.
Maybee try to find all objects of a class and loop through them and then hide if a condition is true.
(Perhaps compare name with a specific string, check if object is in position, hide the object you clicked last etc.)

Like this:

worked out great…thank you very much…you are very clever…i got all actors from class and cast to it and now all is working great…now i need to figure out how to set a boolean in the level…maybe an event dispatcher? ill start another question asking how to do it…thanks again

Glad it worked out. I try to keep variables away from level blueprint, but that depends alot of what you are trying to do.

If you are considering event dispatcher:

i was using a trigger to load and unload levels inside a level blueprint…and i was using booleans and branches to choose which ones to load…maybe it would be better for me to make an actor that has the triggers attached to it and do the level loading from there? and cast to that actor from the widget which is a warp menu basically? sound like a good plan? thanks again!!

What conditions are there on loading your levels?
Do you progress and lvl2 loads from lvl1, lvl3 from lvl2 etc or can you manually choose between lvl1-3 whenever?