# GetGlobalTexture

> Gets a global texture property for all shaders previously set using Shader.SetGlobalTexture.

## Definition

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

## GetGlobalTexture(string)

Gets a global texture property for all shaders previously set using [Shader.SetGlobalTexture](/engine/6000.5/script-reference/unityengine/shader/setglobaltexture.md).

```csharp
public static Texture GetGlobalTexture(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.

### Returns

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

## GetGlobalTexture(int)

Gets a global texture property for all shaders previously set using [Shader.SetGlobalTexture](/engine/6000.5/script-reference/unityengine/shader/setglobaltexture.md).

```csharp
public static Texture GetGlobalTexture(int nameID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The name ID of the property retrieved by [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md).

### Returns

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