Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on April 04, 2015, 06:13:54 PM
-
I have a tank that is used in a menu (spinning via playmaker) and during the actual combat. So I want to destroy the playmaker FSM that spins it. I have tried but get this error. I THINK I have spelled the component wrong. What am I missing?
==============================
MAN-S02-Help : FSM : Vehicles-ON : DestroyComponent : No such component: Play Maker FSM
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String)
HutongGames.PlayMaker.FsmStateAction:LogError(String)
HutongGames.PlayMaker.Actions.DestroyComponent:DoDestroyComponent(GameObject) (at Assets/PlayMaker/Actions/DestroyComponent.cs:43)
HutongGames.PlayMaker.Actions.DestroyComponent:OnEnter() (at Assets/PlayMaker/Actions/DestroyComponent.cs:31)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent)
HutongGames.PlayMaker.Fsm:Event(FsmEvent)
HutongGames.PlayMaker.Actions.uGuiButtonOnClickEvent:DoOnClick() (at Assets/PlayMaker Custom Actions/uGui/uGuiButtonOnClickEvent.cs:56)
UnityEngine.EventSystems.EventSystem:Update()
-
If you need to destroy the FSM component, you must write it this way: PlayMakerFSM -- not Play Maker FSM.
A good way of getting a hint of a components internal name is trying to drag and drop the component into a PlayMaker state (and choosing Get Property). ;)
/Bad
-
Yep. No space. That did it. Thanks.