playMaker

Author Topic: Activate Game Object Action Bug[SOLVED]  (Read 1367 times)

MorGD

  • Playmaker Newbie
  • *
  • Posts: 5
Activate Game Object Action Bug[SOLVED]
« on: May 23, 2019, 10:39:14 AM »
Unity Version: 2019.1.2f1
Playmaker Version: 1.9.0.p16
BuildTarget: StandaloneOSX

Area: Actions
Frequency: Always

1) What happened

The Activate object action doesn't seem to work properly after updating to the latest Playmaker version. (1.9.0.p16).

Evertime you specify a game object either by dragging it directly to the field or by manually selecting the object, the selected object is not saved.

This only happens after the object containing the FSM is turned into a prefab



2) How can we reproduce it

1.- Create any new object in the hierachy and disable it inside the inspector

2.-Add a FSM to the object containing a activate game object action.

3.- Select specify game object on the action and select the object to activate.

4.- Turn the object containing the FSM into a prefab

5.- Check your FSM and the specified game object is never saved.....

System Info:
OS: Mac OS X 10.11.4
Processor: Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz
System Memory: 8192
Graphics Device: NVIDIA GeForce GTX 775M OpenGL Engine

« Last Edit: May 23, 2019, 02:01:01 PM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Activate Game Object Action Bug
« Reply #1 on: May 23, 2019, 11:42:09 AM »
It looks like you're trying to reference a scene object in a prefab...? Prefabs cannot save references to scene objects. This is a Unity limitation, not PlayMaker specific.

Check out this article on working with scene objects when using prefabs: https://hutonggames.fogbugz.com/f/page?W1707

MorGD

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Activate Game Object Action Bug
« Reply #2 on: May 23, 2019, 11:47:50 AM »
Oh I'm so embarrased... Thank you so much for taking look at this newbie error.