public class TextureResource : UnityObjectWrapper

A texture.


public LuaColor GetPixel(int x, int y)

Get the pixel value at this position.

Arguments

Returns: (Color) The color of this pixel


public void SetPixel(int x, int y, LuaColor color)

Set the pixel at a given position.

Arguments


public LuaVector3 GetDimensions()

Get the dimensions of this image.

Returns: (Vector2) The dimensions encoded as a [width, height] Vector2.