Hello,
I am in the process of setting up a change in the material of an actor when my game gets to a certain area. This area is defined by a structure, and when it brings it in from the datatable.
The issue that I am having so far is how I should get where it needs to be.
So far, I have thought of two solutions
- Add the background column to an enum list in my structure, convert that into a string, pass it into a material variable.
Issue with this: I have searched far and wide and there seems to be no actual way to parse a string into a material name
- Set the enum list instead to a material itself
Issue with this: The material never ![alt text][1]seems to change, each time a new one is called, it stays at its default as if it cannot understand the data it is getting from the datatable to be the name of the called material.
Ive been eating away at this slowly, but I am sort of running out of ideas. The only thing I could think of is dynamically setting the name via the material itself and a public variable from my game mode, but that probably isnt what would be advised.
Is anyone aware of what I could do with this?