Class GraphType

The GraphType represents a type inside the graph used to specify the type of a GraphPin or the type specialization of a TemplatedGraphNode.

The GraphType system is able to uniquely mangle types as well as perform type remapping based on the proxyType setting of the GraphObjectAttribute.

Properties

name: string

The name of the type.

systemType: Type[]

The underlying system type.

Accessors

  • get isCompound(): boolean
  • Determines if this instance is a compound type, such as a ResourceHandle of a specified type such as Mesh.

    Returns boolean

    Compound types are represented within RSX's type system as an array e.g. [ResourceHandle, Mesh].

  • get primaryType(): Type
  • Gets the primary type of this instance.

    Returns Type

  • get registeredTypeCount(): number
  • The number of registered types.

    Returns number

  • get remappedGraphTypes(): Map<Type, Type>
  • Gets a map of all type that are remapped to other types through the proxyType GraphObjectAttribute.

    Returns Map<Type, Type>

Methods

  • Determines if this instance is a subclass of type.

    Parameters

    Returns boolean

  • Determines if this instance is a subclass of any of the specifies types.

    Parameters

    Returns boolean

  • Gets the corresponding GraphType for the specified Type or compound type.

    Parameters

    Returns any

  • Finds all types that contain the search query.

    Parameters

    Returns Generator<GraphType, any, any>