Fix: typo subtitle

This commit is contained in:
Yusuke57 2024-03-17 18:53:51 +09:00
parent bcaeef5ea9
commit 59d77ac523
2 changed files with 5 additions and 5 deletions

View File

@ -271,9 +271,9 @@ namespace Alchemy.Editor.Drawers
};
parent.Insert(parent.IndexOf(TargetElement), title);
if (att.SubitleText != null)
if (att.SubtitleText != null)
{
var subtitle = new Label(att.SubitleText)
var subtitle = new Label(att.SubtitleText)
{
style = {
fontSize = 10f,

View File

@ -164,18 +164,18 @@ namespace Alchemy.Inspector
public TitleAttribute(string titleText)
{
TitleText = titleText;
SubitleText = null;
SubtitleText = null;
}
public TitleAttribute(string titleText, string subtitle)
{
TitleText = titleText;
SubitleText = subtitle;
SubtitleText = subtitle;
}
public string TitleText { get; }
public string SubitleText { get; }
public string SubtitleText { get; }
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]