# 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/efc9536feda21bc17c50370f5e35fd8d8d88843a/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`
