I’m using a Add ChildActorComponent to spawn a component in one of my blueprints. I want to check this tag later in my blueprint script. How do I set the tag for the child actor component on spawn? I’ve searched the documentation and Answer Hub and haven’t been able to find anything.
Also, it doesn’t necessarily have to be a tag, it can be a name, ID, or anything I can check later in another blueprint.
In my current project I ran into an issue kind of like this. My solution might work for you.
The Difference for me was that I had components in my blueprint that I wanted to tag but couldn’t figure out how.
So what you could do is when you add ChildActorComponent simply replace my New Spawned Component with the return value from the Add ChildActorComponent function.
Then you can do a Component Has Tag check where ever you need to check.
Hope this helps
I ended up just setting my own variable for this since tags seem kinda limited. Thanks for your response, I’m sure it will come in handy!