playMaker

Author Topic: using a GameObject variable in the Find GameObject action  (Read 1523 times)

Nikolasio

  • Playmaker Newbie
  • *
  • Posts: 23
using a GameObject variable in the Find GameObject action
« on: September 08, 2016, 11:05:04 AM »
Hi,

I'm using some actions on a GameObject Sprite (Find GameObject - Set Position - I Tween Move To - (De)Activate GameObject). Everything works perfect.
Then I'm using the same actions on an empty GameObject with a TextMesh component. But when I hit play, it disappears and doesn't show anymore (the same thing with a tk2d TextMesh).

What seems the problem?

Cheers,
Nikolasio


 

« Last Edit: September 16, 2016, 11:01:44 AM by Nikolasio »

Nikolasio

  • Playmaker Newbie
  • *
  • Posts: 23
using a GameObject variable in the Find GameObject action
« Reply #1 on: September 16, 2016, 11:01:11 AM »
Hi,

I made a repro to clarify (see attachment).


I made 2 FSM's. In the first FSM I use the actions: Set Position - I Tween Move To - (De)Activate GameObject. Everything works perfect.

In the second FSM I try to loop the same actions for different GameObject's. Therefore I use the Find GameObject action so I can store the GameObject's in a variable.  But I can't pull the GameObjects from the hierarchy into the Find GameObject action, instead I get the message 'Get/Set Property/Send Message'.

Can someone have a look at the repro please?

EDIT: I changed the title, it's more about the Find GameObject action and getting a GameObject in the variable.

Grtz
Nikolasio