您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

30 行
885 B

using System.Text;
namespace UnityEngine.MaterialGraph
{
public class FloatPropertyChunk : PropertyChunk
{
private readonly float m_DefaultValue;
public FloatPropertyChunk(string propertyName, string propertyDescription, float defaultValue, HideState hideState)
: base(propertyName, propertyDescription, hideState)
{
m_DefaultValue = defaultValue;
}
public float defaultValue
{
get { return m_DefaultValue; }
}
public override string GetPropertyString()
{
var result = new StringBuilder();
result.Append(propertyName);
result.Append("(\"");
result.Append(propertyDescription);
result.Append("\", Float) = ");
result.Append(defaultValue);
return result.ToString();
}
}
}