32 lines
769 B
C#
32 lines
769 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
/********************************************************************************
|
|||
|
|
*Create By CG
|
|||
|
|
*Function 只读,滑条,多选框
|
|||
|
|
*********************************************************************************/
|
|||
|
|
namespace CG.UTility
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 只读
|
|||
|
|
/// </summary>
|
|||
|
|
public class MyReadOnlyAttribute : PropertyAttribute
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 滑条
|
|||
|
|
/// </summary>
|
|||
|
|
public class MyRangeAttribute : PropertyAttribute
|
|||
|
|
{
|
|||
|
|
public float Min;//最小值
|
|||
|
|
public float Max;//最大值
|
|||
|
|
|
|||
|
|
public MyRangeAttribute(float min, float max)
|
|||
|
|
{
|
|||
|
|
this.Min = min;
|
|||
|
|
this.Max = max;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|