playMaker

Author Topic: Debug: Pause the editor  (Read 1493 times)

Pivetta

  • Playmaker Newbie
  • *
  • Posts: 16
Debug: Pause the editor
« on: January 26, 2016, 04:47:38 PM »
Hi I "wrote" this one liner, allowing you to pause the game editor playback from a fsm, really useful for debugging and testing step by step complex stuff when mouse is locked and you can't get to the pause button.

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Debug)]
[Tooltip("Pauses the game preview.")]
public class PauseEditor : FsmStateAction
{
public override void Reset()
{
}

public override void OnEnter()
{
Debug.Break();

Finish();
}
}
}

I didn't have put it on git, I will when I will have time for this

Cheers,

Pivetta