---
title: resource
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/custommaterial/custommaterialtexture/resource
---

# resource

The texture resource you use to create a custom texture.

## Declaration

```swift
var resource: TextureResource
```
