Files
XRLib/Assets/Scripts/UVC/UIToolkit/Property/Items/UTKVector2PropertyItem.cs
2026-02-10 20:48:49 +09:00

35 lines
1.2 KiB
C#

#nullable enable
using UnityEngine;
namespace UVC.UIToolkit
{
/// <summary>
/// 2D 벡터 속성 데이터 클래스입니다.
/// UI는 UTKVector2PropertyItemView에서 담당합니다.
/// </summary>
public class UTKVector2PropertyItem : UTKPropertyItemBase<Vector2>
{
#region Properties
/// <summary>속성 타입</summary>
public override UTKPropertyType PropertyType => UTKPropertyType.Vector2;
#endregion
#region Constructor
/// <summary>
/// 2D 벡터 속성을 생성합니다.
/// </summary>
/// <param name="id">고유 ID</param>
/// <param name="name">표시 이름</param>
/// <param name="initialValue">초기 값</param>
/// <param name="isReadOnly">읽기 전용 여부</param>
/// <param name="showLabel">레이블 표시 여부</param>
public UTKVector2PropertyItem(string id, string name, Vector2 initialValue = default, bool isReadOnly = false, bool showLabel = true)
: base(id, name, initialValue)
{
_isReadOnly = isReadOnly;
_showLabel = showLabel;
}
#endregion
}
}