Visibility on Fuse Puzzle not Toggling Correctly


Author - Ethan Ortega 

Problem: Upon creating a puzzle involving four fuses and interacting with different levers to toggle the fuses on and off, I encountered a problem with the fuse's visibility. I was using a child actor component for the fuses in the puzzle. When I chose to set one visibility off upon construction of the actor, this would cause issues with it being able to be toggled back on. All the other actors whose visibility was not set to false upon construction toggled correctly. This lead me to believe the problem lay in using a child actor component. 

Unreal Docs on Child Actor Component

Solution: I decided to take a different route and scrap the use of the child actor component. Instead, I replaced it with 4 public variables of type BP_Fuse. I manually set each one in the world outline for the corresponding puzzle. Since there will be a maximum of only one puzzle of this type per level, it was easier to just set the fuse references than find a way to work around the child actor component with which I wasn't familiar. This solved the visibility issue I was having, therefore, making the puzzle complete.  Below is a video showing me testing the working solution and the visibility of the cylinders turning on and off.

Leave a comment

Log in with itch.io to leave a comment.