# Function: add() (/jsdoc/pixi-vn/index/namespaces/RegisteredTickers/functions/add)



\> **add**(`target`, `name?`): `void`

Defined in: [src/canvas/tickers/decorators/RegisteredTickers.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/canvas/tickers/decorators/RegisteredTickers.ts#L54)

Register a ticker in the game.

Parameters [#parameters]

target [#target]

(`args`, `options?`) => [`Ticker`](/jsdoc/pixi-vn/index/interfaces/Ticker)\<`any`>

The class of the ticker.

name? [#name]

`string`

Name of the ticker, by default it will use the class name. If the name is already registered, it will show a warning

Returns [#returns]

`void`
