添加了更多的反射检查逻辑。
修复布局组件的缓存引用关系
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// 数值检查
|
||||
/// </summary>
|
||||
public class XuiavrgNumberCheckAttribute : Attribute, IXuiavrgAttribute
|
||||
{
|
||||
public readonly float minValue;
|
||||
public readonly float maxValue;
|
||||
|
||||
public XuiavrgNumberCheckAttribute(float minValue, float maxValue)
|
||||
{
|
||||
this.minValue = minValue;
|
||||
this.maxValue = maxValue;
|
||||
}
|
||||
|
||||
public void BindProperty(XuiavrgInspectorProperty property)
|
||||
{
|
||||
property.numberMinValue = minValue;
|
||||
property.numberMaxValue = maxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user