Skip to content

Textures

Pete Shand edited this page Oct 21, 2018 · 8 revisions

Texture API

Texture from BitmapData

var bitmapData = Assets.getBitmapData("path/to/image.png");
var texture = new BitmapTexture(bitmapData);

Texture from URL

var texture = new ImageTexture("url/to/image.png");

Video Texture from URL

var texture = new VideoTexture("url/to/video.mp4");
texture.play();

Basics

Features

Clone this wiki locally