Skip to content

GetListByClassName

Retrieves a list of entities by their class name.

CAUTION

Do not modify the returned array. It is a reference to the internal array.

TIP

Class names can be found in the Entities section in debug menu [F11]


GetListByClassName<T extends Entity = Entity>(type: string)T[]

  • typestring - The class name of the entities to retrieve.

Returned:

  • T[] - An array of entities that match the provided class name. If no entities are found, an empty array is returned.