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

34 行
765 B

using System;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{
[Serializable]
public class Vector4ShaderProperty : VectorShaderProperty
{
public Vector4ShaderProperty()
{
displayName = "Vector4";
}
public override PropertyType propertyType
{
get { return PropertyType.Vector4; }
}
public override Vector4 defaultValue
{
get { return value; }
}
public override PreviewProperty GetPreviewMaterialProperty()
{
return new PreviewProperty()
{
name = referenceName,
propType = PropertyType.Vector4,
vector4Value = value
};
}
}
}