TextComponent sometimes Invalid after start new project
I used the Shooter Example and created a blueprint that have a treasure and shows a text "press E" over it, when the player is near (ButtonCollision).
The base of this blueprint was the security button where you can switch between the security cameras in the blueprint example from epic.
Everything work fine but then I started a new blueprint based first person project. I copied all my content from shooterproject over it, created a new Gamestate (from the new first person gamestate) and set the new gamestate as active in the project settings.
The problem is that in the new project the Text "press E" doesn't get destroyed because it is sometimes invalid. In the shooter project is everything fine. I have seek everywhere and have no idea why this happens. Any help is welcome.
asked Aug 28 '16 at 12:07 PM in Blueprint Scripting
Why don't you just have the render text component already attached INSIDE each BP that needs it and just toggle its visibility on and off?
When player overlaps (on overlapped actor), render the text visible. When the player ends overlap, render text not visible.
If player presses whatever Key (E I guess), while overlapped, it does whatever you want it to. Put all the logic that needs to happen with that actor, INSIDE that blueprint.
Let the character/controller, handle the input stuff, and just have the conditional happen inside each respective actor.
When you transferred your BPs, might have been a change it got corrupted, but your current implementation is inefficient.
answered Aug 30 '16 at 05:12 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here