---
title: "asset(forIdentifier:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phaseassetregistry/asset(foridentifier:)"
---

# asset(forIdentifier:)

Provides the asset named with the designated identifier.

## Declaration

```swift
func asset(forIdentifier identifier: String) -> PHASEAsset?
```

## Parameters

- `identifier`: The unique name of the asset.

## Return Value

Return Value A framework asset by the destignated name, if the app registers the asset prior. Otherwise, returns nil.

## See Also

### Registering Sound Event Assets

- [registerSoundEventAsset(rootNode:identifier:)](phase/phaseassetregistry/registersoundeventasset(rootnode:identifier:).md)
