# Function: getVariable() (/jsdoc/pixi-vn/index/namespaces/StorageRegistry/functions/getVariable)



\> **getVariable**\<`T`>(`prefix`, `key`): `T` | `undefined`

Defined in: [src/storage/StorageRegistry.ts:40](https://github.com/DRincs-Productions/pixi-vn/blob/efc9536feda21bc17c50370f5e35fd8d8d88843a/src/storage/StorageRegistry.ts#L40)

## Type Parameters [#type-parameters]

### T [#t]

`T` = [`StorageElementType`](/jsdoc/pixi-vn/index/type-aliases/StorageElementType)

## Parameters [#parameters]

### prefix [#prefix]

`string`

### key [#key]

`string`

## Returns [#returns]

`T` | `undefined`
