Options
All
  • Public
  • Public/Protected
  • All
Menu

Block used to expose an input value

Hierarchy

Index

Constructors

Properties

comments: string

A free comment about the block

groupInInspector: string

Gets or sets the group to use to display this block in the Inspector

max: number

Gets or set a value used to limit the range of float values

min: number

Gets or set a value used to limit the range of float values

onBuildObservable: Observable<NodeGeometryBlock>

Gets an observable raised when the block is built

onValueChangedObservable: Observable<GeometryInputBlock>

Gets an observable raised when the value is changed

uniqueId: number

Gets or sets the unique id of the node

visibleOnFrame: boolean

Gets or sets a boolean indicating that this input can be edited from a collapsed frame

Accessors

  • get buildExecutionTime(): number
  • Gets the time spent to build this block (in ms)

    Returns number

  • Gets the list of input points

    Returns NodeGeometryConnectionPoint[]

  • get isContextual(): boolean
  • Gets a boolean indicating that the current connection point is a contextual value

    Returns boolean

  • get isDebug(): boolean
  • Gets a boolean indicating if this block is a debug block

    Returns boolean

  • get isInput(): boolean
  • Gets a boolean indicating if this block is an input

    Returns boolean

  • get isTeleportIn(): boolean
  • Gets a boolean indicating if this block is a teleport in

    Returns boolean

  • get isTeleportOut(): boolean
  • Gets a boolean indicating if this block is a teleport out

    Returns boolean

  • get isUnique(): boolean
  • Gets a boolean indicating that this block can only be used once per NodeGeometry

    Returns boolean

  • get name(): string
  • set name(value: string): void
  • Gets or set the name of the block

    Returns string

  • Gets or set the name of the block

    Parameters

    • value: string

    Returns void

  • Gets the list of output points

    Returns NodeGeometryConnectionPoint[]

  • get value(): any
  • set value(value: any): void
  • 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

  • get valueCallback(): (() => any)
  • set valueCallback(value: (() => any)): void
  • 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)

      • (): 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)
        • (): any
        • Returns any

    Returns void

Methods

  • _deserialize(serializationObject: any): void
  • Parameters

    • serializationObject: any

    Returns void

  • autoConfigure(): void
  • Lets the block try to connect some inputs automatically

    Returns void

  • Build the current node and generate the vertex data

    Parameters

    Returns boolean

    true if already built

  • dispose(): void
  • getClassName(): string
  • initialize(): void
  • Initialize the block and prepare the context for build

    Returns void

  • Checks if the current block is an ancestor of a given block

    Parameters

    Returns boolean

    true if block is a descendant

  • isAnAncestorOfType(type: string): boolean
  • 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 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

  • serialize(): any
  • Serializes this block in a JSON representation

    Returns any

  • setDefaultValue(): void
  • Set the input block to its default value (based on its type)

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Static method

Settings

Theme