API

Class RichType<T>

A rich type represents extra information about a type, such as its name and a default value constructor.

Type Parameters

  • T
Index
animationType: number = -1

[-1] The ANIMATIONTYPE of the type, if available

defaultValue: T

The default value of the type.

typeName: string

The name given to the type.

typeTransformer: (value: any) => T

A function that can be used to transform a value of any type into a value of this rich type. This can be used, for example, between vector4 and quaternion.