Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: MorGD on May 23, 2019, 10:39:14 AM

Title: Activate Game Object Action Bug[SOLVED]
Post by: MorGD 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

Title: Re: Activate Game Object Action Bug
Post by: Alex Chouls 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
Title: Re: Activate Game Object Action Bug
Post by: MorGD on May 23, 2019, 11:47:50 AM
Oh I'm so embarrased... Thank you so much for taking look at this newbie error.