Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gregacuna on November 22, 2016, 01:11:49 PM

Title: Get Name of Material and/or Texture[SOLVED]
Post by: gregacuna on November 22, 2016, 01:11:49 PM
In my game right now players can choose between four different characters and the material is being saved in a global variable to be loaded on each level. It works fine when the game is started at the Choose Character level, but when I'm working on other levels characters don't have any material/texture.

I want to create a temporary FSM which checks to see if the Material is returning "None" and then load a temporary material. I was thinking the easiest thing would be to get the Material...compare the string to None and then load a default material if necessary...but I cannot figure out how to get the name of the material to compare it.

Is there a way to do that or another solution?

I might just create two separate FSM...one for production and one for building and turn them on or off, but would rather have a more elegant solution.

Thanks!
Title: Re: Get Name of Material and/or Texture
Post by: jeanfabre on November 25, 2016, 02:29:18 AM
Hi,

Yes, it's missing. I added it to the Ecosystem:


https://twitter.com/JeanAtPlayMaker/status/802051347797442560

https://twitter.com/JeanAtPlayMaker/status/802055177138212866

Bye,

 Jean

Title: Re: Get Name of Material and/or Texture
Post by: gregacuna on December 06, 2016, 09:23:50 AM
Thanks Jean...really appreciate that. Downloading and testing them tonight. :)