您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
28 行
499 B
28 行
499 B
namespace UnityEngine.MaterialGraph
|
|
{
|
|
[Title("Math/Range/Clamp")]
|
|
public class ClampNode : Function3Input
|
|
{
|
|
public ClampNode()
|
|
{
|
|
name = "Clamp";
|
|
}
|
|
|
|
protected override string GetInputSlot1Name()
|
|
{
|
|
return "Input";
|
|
}
|
|
|
|
protected override string GetInputSlot2Name()
|
|
{
|
|
return "Min";
|
|
}
|
|
|
|
protected override string GetInputSlot3Name()
|
|
{
|
|
return "Max";
|
|
}
|
|
|
|
protected override string GetFunctionName() {return "clamp"; }
|
|
}
|
|
}
|