Files
2024-11-20 15:21:28 +01:00

26 lines
553 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
using System.Collections.Generic;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.GUI)]
[Tooltip("GUI Label.")]
public class GUILabel : GUIContentAction
{
public override void OnGUI()
{
base.OnGUI();
if (string.IsNullOrEmpty(style.Value))
{
GUI.Label(rect, content);
}
else
{
GUI.Label(rect, content, style.Value);
}
}
}
}