Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Hint
VisualShaderNodeFloatParameter.swift:13enum Hint
Cases
case none
No hint used.
case range
A range hint for scalar value, which limits possible input values between
min
andmax
. Translated tohint_range(min, max)
in shader code.case rangeStep
A range hint for scalar value with step, which limits possible input values between
min
andmax
, with a step (increment) ofstep
). Translated tohint_range(min, max, step)
in shader code.case max
Represents the size of the
Hint
enum.
Other members in extension
Type members
Instance members
var defaultValue: Double
A default value to be assigned within the shader.
var defaultValueEnabled: Bool
Enables usage of the
defaultValue
.var hint: VisualShaderNodeFloatParameter.Hint
A hint applied to the uniform, which controls the values it can take when set through the Inspector.
var max: Double
Minimum value for range hints. Used if
hint
is set to .range or .rangeStep.var min: Double
Maximum value for range hints. Used if
hint
is set to .range or .rangeStep.var step: Double
Step (increment) value for the range hint with step. Used if
hint
is set to .rangeStep.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.