Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Budde88 on December 21, 2016, 12:59:58 PM

Title: Set Tag to a string variable (SOLVED)
Post by: Budde88 on December 21, 2016, 12:59:58 PM
Hey,

I need to set the tag of an instantiated prefab to a string variable.
But when I try to do it it gets stuck in that state.

See attachment
Title: Re: Set Tag to a string variable
Post by: gozda on December 21, 2016, 04:13:44 PM
I am not sure what you searching for, but you can stuck in this action when you trying to set tag what dosnt exist or just empty tag.
Title: Re: Set Tag to a string variable
Post by: Budde88 on December 22, 2016, 07:09:36 AM
Can anyone help me?

If I can't set a string variable as a Tag then why does it give me the option to use a string variable?

Is it possible to set a string variable as a tag?
I need it because the game has to be dynamic, so I don't
have to hard code everything.
Title: Re: Set Tag to a string variable
Post by: gozda on December 22, 2016, 08:19:23 AM
You can set string variable as tag, but this string must be one of tags what you preset in inspector
Title: Re: Set Tag to a string variable
Post by: Budde88 on December 22, 2016, 09:12:43 AM
Is there anyway to reference a string variable that isn't a preset Tag?

That's what I need to achieve.
Title: Re: Set Tag to a string variable (SOLVED)
Post by: Budde88 on December 22, 2016, 10:23:13 AM
Nevermind this topic,

I have achieved a work around.

Thanks