Outline for multiple objects in a BP

I am using a material that uses postprocessing to highlight mesh object when the cursor is over it. (The BP works with separate mesh objects)

I would like it to outline all of the meshes inside a blueprint that contains multiple static meshes. Currently it outlines only one static mesh object inside a blueprint that includes several meshes.

Is there a way to make all the objects inside the blueprint to be outlined/highlighted.
Example 2 objects inside a blueprint that contains a actorcomponent


Why not loop over the components?

Also, could you just hightlight the actor?

True. Actor would be the right thing to highlight. Trying to understand how to get the Actor.
I am beginner to visual scripting. For me it’s like trial and error style scripting :slight_smile:

1 Like

I can’t really say much, not enough info. The blueprint could apply the effect to itself, or another BP could do it from a reference you got from the map somehow…

1 Like

Imported 3 Meshes


Made mesh objects to a blueprint containing the 3 objects

Made a actor component named clickable to control the highlight. Here is where it should look for the actor with all the meshes and set render custom depth active for that actor


Added the clickable to the primitives blueprint

With this setup it takes only the first mesh in the BP_actor and highlights it.

I would need it to highlight every object in the Primitives_Blueprint (containing all the meshes) on mouse over.

The blueprint was from this tutorial

It is using the postprocess to control the highlights with a custom material.

I checked my code ( I have a similar sort of thing going on ).

I have an event in my parent BP, ‘highlight’. When an interactive actor receives that interface call, it just highlights all static mesh components. Ok, not all, but all the useful ones.

It’s exactly what you have here, except I use an array.

Its a stupid question but how do I implement it in the current code. For some reason I can’t get it to work. Can you take a screenshot or something that helps me out?

You’ll want to use Get ComponentS By Class, and run a For Each loop on them.

3 Likes

3 Likes

Yep… ComponentS :+1: (plural)
That was stupid of me.

Thanks ClockworkOcean and eblade!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.