I want to change the text after I opened the door, also so that the text changes to the same as it was originally.
For example: Press F (For open Door) > Press F (For close Door) > Press F (For open Door) and so on
Here is an example in the photo of what I need.
Fist of all, get the actor from overlap event and cast it to a class is not a good style. Maybe think of an interface. Here is a very good tutorial on that:
In your example here you can simply set the text on the TextRender component depending on the state the door is in:
1 Like
Thank you for your answer, I will definitely read the materials and write about the work done
1 Like