# TextureResource

Kind: Class · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span>Inherits <a href="/scripting/api/sansar.script/instanceinterface">Sansar.Script.InstanceInterface</a></span>
<span class="api-badge api-new">New in 47.10.0</span>
</div>

<span id="T:Sansar.Simulation.TextureResource"></span>

The TextureResource class represents a texture from the inventory, such as a color LUT. See [`ScenePrivate.SetColorLut`](/scripting/api/sansar.simulation/sceneprivate#setcolorlut-textureresource).

```csharp
public class TextureResource : Sansar.Script.InstanceInterface
```

## Remarks

Set as a script property, the texture is chosen from the inventory in the scene editor. The server never loads the texture data; only the clients that apply it do.

## Members at a glance

| Kind | Members |
|---|---|
| **Properties** | [ResourceId](#resourceid)&#160;<span class="api-dot" title="New in 47.10.0"><span class="api-sr">New in 47.10.0</span></span> |
| **Methods** | [ToString](#tostring)&#160;<span class="api-dot" title="New in 47.10.0"><span class="api-sr">New in 47.10.0</span></span> |

## Properties

### ResourceId

<div class="api-card">
<span id="P:Sansar.Simulation.TextureResource.ResourceId"></span>
<div class="api-badges"><span class="api-badge api-new">New in 47.10.0</span></div>

```csharp signature
public string ResourceId { get; }
```

Returns the resource Id of this TextureResource.

</div>


## Methods

### ToString

<div class="api-card">
<span id="M:Sansar.Simulation.TextureResource.ToString"></span>
<span id="M:Sansar.Simulation.TextureResource.ToString()"></span>
<div class="api-badges"><span class="api-badge api-new">New in 47.10.0</span></div>

```csharp signature
public override string ToString()
```

A string representation of this object.

**Returns:** [string](https://learn.microsoft.com/dotnet/api/system.string) — A string representation of this object.

<details class="api-remarks"><summary>Remarks</summary>

The format of this string may change between releases.

</details>

</div>


## Used in examples

- `ColorLutExample.cs`

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>