# ResourcePathAttribute(string, SearchType)

> Creates a new ResourcePathAttribute for a single resource. Defaults to Project resource path location.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public ResourcePathAttribute(string path, SearchType location = SearchType.ProjectPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path targetting the resource**** (\[SearchType]\(/engine/6000.5/script-reference/unityengine/rendering/searchtype)): Specify if the given paths are from the builtin, builtinExtra or project resources.
