# Sandbox.TextRendering.GetOrCreateTexture

```csharp
static Texture GetOrCreateTexture(in Scope scope, Vector2 clip = null, TextFlag flag = 33)
```

Create a texture from the scope. The texture will either be a cached version or will be rendered immediately

### Parameters

- `in scope` (`Scope`)
- `clip` (`Vector2`), default `null`
- `flag` (`TextFlag`), default `33`

### Returns

`Texture`

Declared in [Sandbox.TextRendering](/api/Sandbox.TextRendering).
Assembly: `Sandbox.Engine`.
