VisualShaderNodeIntParameter
A visual shader node for shader parameter (uniform) of type integer.
VisualShaderNodeIntParameter.swift:11class VisualShaderNodeIntParameter
A VisualShaderNodeParameter
of type integer. Offers additional customization for range of accepted values.
Superclasses
class VisualShaderNodeParameter
A base type for the parameters within the visual shader graph.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
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 Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Types
Type members
Instance members
var defaultValue: Int32
Default value of this parameter, which will be used if not set externally.
defaultValueEnabled
must be enabled; defaults to0
otherwise.var defaultValueEnabled: Bool
If
true
, the node will have a custom default value.var hint: VisualShaderNodeIntParameter.Hint
Range hint of this node. Use it to customize valid parameter range.
var max: Int32
The maximum value this parameter can take.
hint
must be either .range or .rangeStep for this to take effect.var min: Int32
The minimum value this parameter can take.
hint
must be either .range or .rangeStep for this to take effect.var step: Int32
The step between parameter’s values. Forces the parameter to be a multiple of the given value.
hint
must be .rangeStep for this to take effect.