Constructors
constructor
new Image2DAlphaMask( threshold?: number , pixelData?: number [] ) : Image2DAlphaMask
Defined in RuntimeFull.ts:2220
Parameters
Optional threshold: number
Optional pixelData: number []
Properties
pixelData
pixelData: number []
Defined in RuntimeFull.ts:2226
threshold
threshold: number
Defined in RuntimeFull.ts:2224
Static _isSharedComp
_isSharedComp: boolean
Defined in RuntimeFull.ts:2231
Static _size
_size: number
Defined in RuntimeFull.ts:2233
Static _view
_view: any
Defined in RuntimeFull.ts:2230
Static cid
cid: number
Defined in RuntimeFull.ts:2229
Static threshold
Defined in RuntimeFull.ts:2227
Methods
Static _dtorFn
Defined in RuntimeFull.ts:2237
Parameters
Returns void
Static _fromPtr
Defined in RuntimeFull.ts:2234
Parameters
Static _tempHeapPtr
Defined in RuntimeFull.ts:2236
Parameters
Returns number
Static _toPtr
Defined in RuntimeFull.ts:2235
Parameters
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A component that keeps a read only alpha mask of an Image2D for use in HitBox2D hit testing, when pixelAccurate hit testing is enabled. Add the Image2DAlphaMask component next to an Image2D component before loading the image.