Class Texture2DInputMaterialSlot
Inheritance
System.Object
Texture2DInputMaterialSlot
Syntax
public class Texture2DInputMaterialSlot : Texture2DMaterialSlot
Constructors
Texture2DInputMaterialSlot()
Declaration
public Texture2DInputMaterialSlot()
Texture2DInputMaterialSlot(Int32, String, String, ShaderStageCapability, Boolean)
Declaration
public Texture2DInputMaterialSlot(int slotId, string displayName, string shaderOutputName, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
Parameters
Type |
Name |
Description |
System.Int32 |
slotId |
|
System.String |
displayName |
|
System.String |
shaderOutputName |
|
ShaderStageCapability |
stageCapability |
|
System.Boolean |
hidden |
|
Properties
defaultType
Declaration
public TextureShaderProperty.DefaultType defaultType { get; set; }
Property Value
texture
Declaration
public Texture texture { get; set; }
Property Value
Methods
AddDefaultProperty(PropertyCollector, GenerationMode)
Declaration
public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
Parameters
Overrides
CopyValuesFrom(MaterialSlot)
Declaration
public override void CopyValuesFrom(MaterialSlot foundSlot)
Parameters
Overrides
GetDefaultValue(GenerationMode)
Declaration
public override string GetDefaultValue(GenerationMode generationMode)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
GetPreviewProperties(List<PreviewProperty>, String)
Declaration
public override void GetPreviewProperties(List<PreviewProperty> properties, string name)
Parameters
Overrides
InstantiateControl()
Declaration
public override VisualElement InstantiateControl()
Returns
Type |
Description |
VisualElement |
|
Overrides