您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
549 B
26 行
549 B
using UnityEngine;
|
|
|
|
namespace UnityEngine.VFXToolbox
|
|
{
|
|
public class FloatSliderAttribute : PropertyAttribute
|
|
{
|
|
public float m_ValueMin;
|
|
public float m_ValueMax;
|
|
|
|
public FloatSliderAttribute(float min, float max)
|
|
{
|
|
// Check inversions : value
|
|
if(min < max)
|
|
{
|
|
m_ValueMin = min;
|
|
m_ValueMax = max;
|
|
}
|
|
else
|
|
{
|
|
m_ValueMin = max;
|
|
m_ValueMax = min;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|