Mesh Instance & Custom Data Value problem

Hi there!

We are working on a Tactical RPG, with a grid system.

Right now the grid works fine, I use Mesh Instances for the tiles and add them a color depending on the context (blue for moving, purple for in range, red for aoe spells…).

Now I’m trying to make the visual a little cleaner, so instead of having the full tiles colored, I just want the external borders to be colored (like in most TRPG like XCom).

So I have my material like this:

4 textures, one for each border. I have my Custom Data nodes, if the value is 1 the border is enabled, if not it’s disabled.

When I modify the value inside the material, it works fine. However, it does absolutly nothing when I use the node “set custom data value” inside my BP.

I used the exact same method for adding the colors to the tiles and it worked fine:

But not for what I’m trying to do with the borders:

What am I doing wrong?

Thanks a lot for your help!

1 Like

I’d double check:

  • did you mean to feed it all 0s?
  • the number of custom data floats on the component
  • do all instances belong to the same comp or do we juggle them between many? If many, see the 2nd bullet point
1 Like

That was the problem, I was about to edit my message ^^

Thanks!

1 Like

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