Class GradientShaderProperty
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.ShaderGraph
Syntax
public class GradientShaderProperty : AbstractShaderProperty<Gradient>, IShaderProperty
Constructors
GradientShaderProperty()
Declaration
public GradientShaderProperty()
Properties
defaultValue
Declaration
public override Vector4 defaultValue { get; }
Property Value
Type | Description |
---|---|
Vector4 |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.defaultValue
isBatchable
Declaration
public override bool isBatchable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.isBatchable
propertyType
Declaration
public override PropertyType propertyType { get; }
Property Value
Type | Description |
---|---|
PropertyType |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.propertyType
Methods
Copy()
Declaration
public override IShaderProperty Copy()
Returns
Type | Description |
---|---|
IShaderProperty |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.Copy()
GetPreviewMaterialProperty()
Declaration
public override PreviewProperty GetPreviewMaterialProperty()
Returns
Type | Description |
---|---|
PreviewProperty |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.GetPreviewMaterialProperty()
GetPropertyBlockString()
Declaration
public override string GetPropertyBlockString()
Returns
Type | Description |
---|---|
System.String |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.GetPropertyBlockString()
GetPropertyDeclarationString(String)
Declaration
public override string GetPropertyDeclarationString(string delimiter = ";")
Parameters
Type | Name | Description |
---|---|---|
System.String | delimiter |
Returns
Type | Description |
---|---|
System.String |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.GetPropertyDeclarationString(System.String)
OverrideMembers(String)
Declaration
public void OverrideMembers(string slotName)
Parameters
Type | Name | Description |
---|---|---|
System.String | slotName |
ToConcreteNode()
Declaration
public override INode ToConcreteNode()
Returns
Type | Description |
---|---|
INode |
Overrides
UnityEditor.ShaderGraph.AbstractShaderProperty<Gradient>.ToConcreteNode()