Class GeometryInputBlock
Hierarchy
- NodeGeometryBlock
- GeometryInputBlock
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new InputBlock
Parameters
name: string
defines the block name
Optional type: NodeGeometryBlockConnectionPointTypes
defines the type of the input (can be set to NodeGeometryBlockConnectionPointTypes.AutoDetect)
Returns GeometryInputBlock
Properties
commentsSearch playground for comments
A free comment about the block
group In InspectorSearch playground for groupInInspector
Gets or sets the group to use to display this block in the Inspector
maxSearch playground for max
Gets or set a value used to limit the range of float values
minSearch playground for min
Gets or set a value used to limit the range of float values
on Build ObservableSearch playground for onBuildObservable
Gets an observable raised when the block is built
on Value Changed ObservableSearch playground for onValueChangedObservable
Gets an observable raised when the value is changed
unique IdSearch playground for uniqueId
Gets or sets the unique id of the node
visible On FrameSearch playground for visibleOnFrame
Gets or sets a boolean indicating that this input can be edited from a collapsed frame
Accessors
build Execution Time
Gets the time spent to build this block (in ms)
Returns number
contextual Value
Gets or sets the current contextual value
Returns NodeGeometryContextualSources
Gets or sets the current contextual value
Parameters
Returns void
inputs
Gets the list of input points
Returns NodeGeometryConnectionPoint[]
is Contextual
Gets a boolean indicating that the current connection point is a contextual value
Returns boolean
is Debug
Gets a boolean indicating if this block is a debug block
Returns boolean
is Input
Gets a boolean indicating if this block is an input
Returns boolean
is Teleport In
Gets a boolean indicating if this block is a teleport in
Returns boolean
is Teleport Out
Gets a boolean indicating if this block is a teleport out
Returns boolean
is Unique
Gets a boolean indicating that this block can only be used once per NodeGeometry
Returns boolean
name
Gets or set the name of the block
Returns string
Gets or set the name of the block
Parameters
value: string
Returns void
output
Gets the geometry output component
Returns NodeGeometryConnectionPoint
outputs
Gets the list of output points
Returns NodeGeometryConnectionPoint[]
type
Gets or sets the connection point type (default is float)
Returns NodeGeometryBlockConnectionPointTypes
value
Gets or sets the value of that point. Please note that this value will be ignored if valueCallback is defined
Returns any
Gets or sets the value of that point. Please note that this value will be ignored if valueCallback is defined
Parameters
value: any
Returns void
value Callback
Gets or sets a callback used to get the value of that point. Please note that setting this value will force the connection point to ignore the value property
Returns (() => any)
Gets or sets a callback used to get the value of that point. Please note that setting this value will force the connection point to ignore the value property
Returns any
Gets or sets a callback used to get the value of that point. Please note that setting this value will force the connection point to ignore the value property
Parameters
value: (() => any)
Returns any
Returns void
Methods
_deserializeSearch playground for _deserialize
Parameters
serializationObject: any
Returns void
auto ConfigureSearch playground for autoConfigure
Lets the block try to connect some inputs automatically
Returns void
buildSearch playground for build
Build the current node and generate the vertex data
Parameters
state: NodeGeometryBuildState
defines the current generation state
Returns boolean
true if already built
cloneSearch playground for clone
Clone the current block to a new identical block
Returns null | NodeGeometryBlock
a copy of the current block
disposeSearch playground for dispose
Release resources
Returns void
get Class NameSearch playground for getClassName
Gets the current class name
Returns string
the class name
get Descendant Of PredicateSearch playground for getDescendantOfPredicate
Get the first descendant using a predicate
Parameters
predicate: ((block: NodeGeometryBlock) => boolean)
defines the predicate to check
Parameters
block: NodeGeometryBlock
Returns boolean
Returns Nullable<NodeGeometryBlock>
descendant or null if none found
get Input By NameSearch playground for getInputByName
Find an input by its name
Parameters
name: string
defines the name of the input to look for
Returns null | NodeGeometryConnectionPoint
the input or null if not found
get Output By NameSearch playground for getOutputByName
Find an output by its name
Parameters
name: string
defines the name of the output to look for
Returns null | NodeGeometryConnectionPoint
the output or null if not found
initializeSearch playground for initialize
Initialize the block and prepare the context for build
Returns void
is An Ancestor OfSearch playground for isAnAncestorOf
Checks if the current block is an ancestor of a given block
Parameters
block: NodeGeometryBlock
defines the potential descendant block to check
Returns boolean
true if block is a descendant
is An Ancestor Of TypeSearch playground for isAnAncestorOfType
Checks if the current block is an ancestor of a given type
Parameters
type: string
defines the potential type to check
Returns boolean
true if block is a descendant
register InputSearch playground for registerInput
Register a new input. Must be called inside a block constructor
Parameters
name: string
defines the connection point name
type: NodeGeometryBlockConnectionPointTypes
defines the connection point type
Optional isOptional: boolean
defines a boolean indicating that this input can be omitted
Optional value: any
value to return if there is no connection
Optional valueMin: any
min value accepted for value
Optional valueMax: any
max value accepted for value
Returns GeometryInputBlock
the current block
register OutputSearch playground for registerOutput
Register a new output. Must be called inside a block constructor
Parameters
name: string
defines the connection point name
type: NodeGeometryBlockConnectionPointTypes
defines the connection point type
Optional point: NodeGeometryConnectionPoint
an already created connection point. If not provided, create a new one
Returns GeometryInputBlock
the current block
serializeSearch playground for serialize
Serializes this block in a JSON representation
Returns any
set Default ValueSearch playground for setDefaultValue
Set the input block to its default value (based on its type)
Returns void
Block used to expose an input value