Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MrAdventure on February 12, 2014, 02:34:38 PM

Title: How to get the name of a Texure variable?[SOLVED]
Post by: MrAdventure on February 12, 2014, 02:34:38 PM
Hi there,

How do I get the string name of a Texture variable on an FSM?  The texture is assigned in the inspector.

Thanks?

Victor
Title: Re: How to get the name of a Texure variable?
Post by: Lane on February 12, 2014, 03:59:44 PM
I couldn't figure out a quick way to do it, so I just edited the GetFsmTexture action to return the name into a string. File attached.

If the texture is in a variable in the Editor you can just grab it from there. Is that the case or is it in the regular Unity Inspector? If so, is it in a Material?
Title: Re: How to get the name of a Texure variable?
Post by: MrAdventure on February 12, 2014, 04:54:56 PM
That worked like a charm, thanks!