Achievement effect: the chair disappears after the program is running
Contents involved: EventBeginPlay (triggered when the program is running) Toggle Visibility (toggle visibility)
The specific operation is as follows:
1. Open the Level BluePrint editing window
as shown in the figure below
2. How to obtain the reference of the elements in the world outline
First select the element in the world outline, right-click on the blank space in the graph editing window in the level blueprint and select create a reference to xxx 3.
Click the blue circle point and drag the mouse to the blank space, and the association list will appear, enter in the association list search box toggle, search for toggle visibility, select it, and there will be two more nodes in the editing panel. The
switch between visible and hidden objects has been completed above, and the event call is added below . The execution pin (output) of Event BiginPlay is connected to the execution pin (input) of Toggle Visibility. The execution pin is a pentagon , and the data pin is a blue circle with an arrow. , click to compile and bring a pair of signs , click Play to run and find that the chair disappears so easy to complete a test
UE element control display and concealment
Guess you like
Origin blog.csdn.net/gusushantang/article/details/126920179
Ranking