How to unhide actor components on selection.
I finally figured out how to draw a rectangle and select/move units in my project, but I have no way to mark which is selected and which isn't.
I have a selection circle material I made and it's on the npc; set to hidden by default and what I'm trying to do is quite simple. When they are selected they are added to an array of selected actors, I'd then like to set their circles to visible.
But if I try to reference the material and set it to not hidden in the selection_hud bp it spits out errors and any way i attempt to reference the component or material returns errors.
When you select actor/s they are added to an array of them all and I'm trying to forloop and set hidden to false. Any help appreciated.
Here The selection circle is a material put onto a plane static mesh component on my npc bp.
Edit solved!: Figured it out here is the code for anyone wondering how noticed the internet is light on ways to do some of this stuff. Thanks!
Follow this question
Once you sign in you will be able to subscribe for any updates here