Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Image2DLoadFromFile

Initialize an image from an asset file Once loading has started, the asset loading system will remove this component from the image

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional imageFile: string
    • Optional maskFile: string

    Returns Image2DLoadFromFile

Properties

imageFile

imageFile: string

the image file/URL to load

maskFile

maskFile: string

An image to use as the mask. The red channel will be used as the mask; efficient compression can be used (e.g. a single channel PNG or paletted PNG8).

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

Generated using TypeDoc