World Utilities / Values
Texture2D
A texture reference - typically the result of downloading an image.
since v0.1.0local
| Component | Add Component menu / prefab | Source |
|---|---|---|
Local Texture2DVRCTools.World.LocalValues.LocalTexture2D
|
Local Values › Local Texture2Dprefab: Local Texture2D.prefab
|
LocalTexture2D.cs ↗ |
Texture2D values exist only as local values: textures cannot be synchronized or persisted. They usually hold the output of a Texture2D Loader which downloads an image from a (local or synchronized) URL value on every client. Display the result with a Raw Image applicator or a Material Property applicator.
[ Synchronized URL ] ──▶ [ Texture2D Loader ] ──▶ [ Local Texture2D ] ──▶ [ Raw Image Applicator ]
Parameters
| Parameter | Default | Description |
|---|---|---|
| Default Value | None | The texture the value is initialized with. |
Events
| Event | Description |
|---|---|
EVENT_STATE_UPDATED |
The state changed (also emitted once with the initial state). |
EVENT_STATE_RESET |
_Reset() restored the default value. |
Functions
| Function | Description |
|---|---|
_Reset() |
Restores Default Value. |