Class BooleanMaterialSlot
Inheritance
System.Object
BooleanMaterialSlot
Syntax
public class BooleanMaterialSlot : MaterialSlot, IMaterialSlotHasValue<bool>
Constructors
BooleanMaterialSlot()
Declaration
public BooleanMaterialSlot()
BooleanMaterialSlot(Int32, String, String, SlotType, Boolean, ShaderStageCapability, Boolean)
Declaration
public BooleanMaterialSlot(int slotId, string displayName, string shaderOutputName, SlotType slotType, bool value, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
Parameters
Type |
Name |
Description |
System.Int32 |
slotId |
|
System.String |
displayName |
|
System.String |
shaderOutputName |
|
SlotType |
slotType |
|
System.Boolean |
value |
|
ShaderStageCapability |
stageCapability |
|
System.Boolean |
hidden |
|
Properties
concreteValueType
Declaration
public override ConcreteSlotValueType concreteValueType { get; }
Property Value
Overrides
defaultValue
Declaration
public bool defaultValue { get; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
value
Declaration
public bool value { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Implements
valueType
Declaration
public override SlotValueType valueType { get; }
Property Value
Overrides
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
CopyValuesFrom(MaterialSlot)
Declaration
public override void CopyValuesFrom(MaterialSlot foundSlot)
Parameters
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