Type.fromName

Lookup the type ID from a given type name, returning 0 if no type has been registered under this name (this is the preferred method to find out by name whether a specific type has been registered yet).

struct Type
static
fromName
(
string name
)

Parameters

name string

type name to lookup

Return: corresponding type ID or 0

Meta