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

27 lines
540 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Application)]
[Tooltip("Gets the Height of the Screen in pixels.")]
public class GetScreenHeight : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmFloat storeScreenHeight;
public override void Reset()
{
storeScreenHeight = null;
}
public override void OnEnter()
{
storeScreenHeight.Value = Screen.height;
Finish();
}
}
}