# Access package assets using scripts

> Use the prescribed path scheme to access or refer to assets within a package.

This section explains how to access or refer to assets that are defined inside a package:

* [Referring to package paths](#Paths)
* [Loading a Texture inside a package](#Textures)
* [Resolving absolute paths](#GetFullPath)

> **Note:**
>
> Package Manager doesn't support streaming assets in packages. Use the [Addressables](https://docs.unity3d.com/Packages/com.unity.addressables@latest) package instead.

## Referring to package paths

To refer to assets that are defined inside a package, use this path scheme:

```lang-cs
"Packages/<package-name>/..."
```

The path of the asset inside a package begins with `Packages/` and the package [name](/engine/6000.7/manual/packages-list/cus-pkg-lp/cus-pkg-development/cus-pkg-manifest/upm-manifest-pkg.md#name) (not the [display name](/engine/6000.7/manual/packages-list/cus-pkg-lp/cus-pkg-development/cus-pkg-manifest/upm-manifest-pkg.md#displayName)).

By contrast, you access project assets using this scheme:

```lang-cs
"Assets/..."
```

For example, the path for the file `image.png` in the package subfolder `/Example/Images` of the **com.unity.images-library** package is:

```lang-cs
"Packages/com.unity.images-library/Example/Images/image.png"
```

To get the absolute path of an item in your `Packages` folder, you can use the partial path as a parameter to the [Path.GetFullPath()](https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getfullpath?view=netframework-4.7.2) method. For an example, refer to [Resolving absolute paths](#GetFullPath).

## Loading a Texture inside a package

To load a Texture stored inside a package, use the [LoadAssetAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadassetatpath.md) method, which requires the `using UnityEditor` directive. Specify the path following the `Packages/<package-name>/` path scheme as demonstrated in this example:

```lang-cs
using UnityEditor;
// ...
Texture2D texture = (Texture2D)AssetDatabase.LoadAssetAtPath("Packages/com.unity.images-library/Example/Images/image.png", typeof(Texture2D));
```

## Resolving absolute paths

To get the absolute path of a packaged asset, use the [Path.GetFullPath()](https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getfullpath?view=netframework-4.7.2) method, which requires the `using System.IO` directive. For example:

```lang-cs
using System.IO;
// ...
string absolute =   Path.GetFullPath("Packages/com.unity.images-library/Example/Images/image.png");
```

## Additional resources

* [PackageInfo.name](/engine/6000.7/script-reference/unityeditor/packagemanager/packageinfo/name.md) (Scripting API)
* [Search for files](/engine/6000.7/manual/unity-editor/editor-navigating-managing/editor-searching/search-overview/search-by-provider/search-files-presets-overview/search-files.md)
