I looked but did not find a similar issue to this one so I apologize if this has already been posted.
Whenever I hit play I get this error in the Console of Unity, but I do not get any error notice or have any issues with my FSMs in Playmaker before I hit Play.
[C:/BuildAgent/work/812c4f5049264fad/Runtime/Graphics/Transform.cpp line 260]
(Filename: Assets/PlayMaker/Actions/SetParent.cs Line: 38)
Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption.
UnityEngine.Transform:set_parent(Transform)
HutongGames.PlayMaker.Actions.SetParent:OnEnter() (at Assets\PlayMaker\Actions\SetParent.cs:38)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean)
HutongGames.PlayMaker.Fsm:ChangeState(FsmEvent)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent)
HutongGames.PlayMaker.Fsm:Event(FsmEvent)
HutongGames.PlayMaker.Actions.IntSwitch:DoIntSwitch() (at Assets\PlayMaker\Actions\IntSwitch.cs:49)
HutongGames.PlayMaker.Actions.IntSwitch:OnEnter() (at Assets\PlayMaker\Actions\IntSwitch.cs:29)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:Update()
PlayMakerFSM:Update()
I am not sure what the issue is here? As my actions create the object then the next action is supposed to set the newly created object's parent through a Set Parent Action. These errors pop up in the console and the newly created game objects are not parenting the way they should. Should I separate the two actions into different FSMs?
Thanks in advance!