playMaker

Author Topic: Set Tag to a string variable (SOLVED)  (Read 2393 times)

Budde88

  • Full Member
  • ***
  • Posts: 165
Set Tag to a string variable (SOLVED)
« 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
« Last Edit: December 22, 2016, 10:23:37 AM by Budde88 »

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Set Tag to a string variable
« Reply #1 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.

Budde88

  • Full Member
  • ***
  • Posts: 165
Re: Set Tag to a string variable
« Reply #2 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.
« Last Edit: December 22, 2016, 07:11:30 AM by Budde88 »

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Set Tag to a string variable
« Reply #3 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

Budde88

  • Full Member
  • ***
  • Posts: 165
Re: Set Tag to a string variable
« Reply #4 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.

Budde88

  • Full Member
  • ***
  • Posts: 165
Re: Set Tag to a string variable (SOLVED)
« Reply #5 on: December 22, 2016, 10:23:13 AM »
Nevermind this topic,

I have achieved a work around.

Thanks