Class ColorRGBMaterialSlot
Inheritance
System.Object
ColorRGBMaterialSlot
Syntax
public class ColorRGBMaterialSlot : Vector3MaterialSlot, IMaterialSlotHasValue<Vector3>
Constructors
ColorRGBMaterialSlot()
Declaration
public ColorRGBMaterialSlot()
ColorRGBMaterialSlot(Int32, String, String, SlotType, Color, ColorMode, ShaderStageCapability, Boolean)
Declaration
public ColorRGBMaterialSlot(int slotId, string displayName, string shaderOutputName, SlotType slotType, Color value, ColorMode colorMode, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
Parameters
| Type |
Name |
Description |
| System.Int32 |
slotId |
|
| System.String |
displayName |
|
| System.String |
shaderOutputName |
|
| SlotType |
slotType |
|
| Color |
value |
|
| ColorMode |
colorMode |
|
| ShaderStageCapability |
stageCapability |
|
| System.Boolean |
hidden |
|
Properties
colorMode
Declaration
public ColorMode colorMode { get; set; }
Property Value
Methods
AddDefaultProperty(PropertyCollector, GenerationMode)
Declaration
public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
Parameters
Overrides
ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)
Declaration
protected override string ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision precision)
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