World Utilities / Applicators
Raw Image
Displays a Texture2D value in a Unity UI RawImage.
since v0.1.0local
| Component | Add Component menu / prefab | Source |
|---|---|---|
Local Raw Image Texture2D ApplicatorVRCTools.World.LocalValues.Applicators.LocalRawImageTexture2DApplicator
|
Local Values › Applicators › Local Raw Image Texture2D Applicatorprefab: Raw Image.prefab
|
LocalRawImageTexture2DApplicator.cs ↗ |
Assigns the state of a Texture2D value to the RawImage
component on the same game object, updating it whenever the texture changes. Together with a
Texture2D Loader this is all you need to show remote
images on a canvas.
Parameters
| Parameter | Default | Description |
|---|---|---|
| Local Value | None | The Texture2D value to display. Required. |
The component requires a RawImage on the same game object (Unity adds one automatically).
Downloaded images keep their original aspect ratio. Add an Aspect Ratio Fitter to the RawImage, or design your frame around a fixed ratio and ask contributors to stick to it.