Files
beyond/Assets/ThirdParty/PlayMaker/Actions/GUI/ResetGUIMatrix.cs
2024-11-20 15:21:28 +01:00

16 lines
429 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.GUI)]
[Tooltip("Resets the GUI matrix. Useful if you've rotated or scaled the GUI and now want to reset it.")]
public class ResetGUIMatrix : FsmStateAction
{
public override void OnGUI()
{
PlayMakerGUI.GUIMatrix = GUI.matrix = Matrix4x4.identity;
}
}
}