Why can't I receive variables from GameInstance for a destructible mesh?

anonymous_user_8842144f
Wed, 05 Apr 2017 15:28:22 +0000
World Creation

Hello all!

I have a problem with getting variables from my Game Instance. The variables I have stored are booleans that, if true, will set materials for a mesh. This works perfectly fine for custom meshes (actor BP’s), in which I call the variables through blueprint scripting.

However, I can’t seem to do the same for destructible meshes. The Event Graph for the DM blueprint and the regular mesh blueprint are exactly the same, the only difference is that I created this blueprint directly from the DM, so where Destructible Component is the root.

I tested this out by having both blueprints placed in my level. The custom mesh displays the materials just fine, the destructible mesh only shows the WorldGridMaterial which is an indication that the variables are not being accessed. I don’t get any errors when compiling the blueprint, so I have no idea what could be the issue.

I even tested this out by having both a simple mesh (a cube) and the DM in the same blueprint, to see if maybe the blueprint itself is invalid. Again, the cube displays materials just fine and the DM doesn’t.

Any help is greatly appreciated!

1 post - 1 participant