# Load(string)

> Load a built-in resource.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static Object Load(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                            | Description |
| --------------------------------------------------------------- | ----------- |
| [Object](/engine/6000.5/script-reference/unityengine/object.md) |             |

### Remarks

This function will look in Assets/Editor Default Resources/ + path for the resource. If not there, it will try the built-in editor resources by name.

### Examples

```csharp
using UnityEngine;
using UnityEditor;

public class LoadExample
{
    [MenuItem("Examples/Load Editor Texture Example")]
    static void loadExample()
    {
        Texture tex  = (Texture)EditorGUIUtility.Load("aboutwindow.mainheader");
        Debug.Log("Got: " + tex.name + " !");

        Renderer r = GameObject.Find("Cube").GetComponent<Renderer>();
        r.sharedMaterial.mainTexture = tex;
    }
}
```
