Skip to content

Get Sansar

Script API

TextureResource

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Script.InstanceInterface New in 47.10.0

The TextureResource class represents a texture from the inventory, such as a color LUT. See ScenePrivate.SetColorLut.

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

KindMembers
PropertiesResourceId New in 47.10.0
MethodsToString New in 47.10.0

Properties

ResourceId

New in 47.10.0
public string ResourceId { get; }

Returns the resource Id of this TextureResource.

Methods

ToString

New in 47.10.0
public override string ToString()

A string representation of this object.

Returns: string — A string representation of this object.

Remarks

The format of this string may change between releases.

Used in examples

  • ColorLutExample.cs

Generated from the Sansar 47.10.0 client ScriptApi snapshot.