# Function: getVariable() (/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/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L40)

## Type Parameters [#type-parameters]

### T [#t]

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

## Parameters [#parameters]

### prefix [#prefix]

`string`

### key [#key]

`string`

## Returns [#returns]

`T` | `undefined`
