Imagecomponent

ImageComponent class

Image component, used to display images in the game (.png, .jpg, .jpeg)

See ImageComponentData for the data schema used to create an image component

Signature:

export declare class ImageComponent extends Component3D<ImageComponentData> 

Extends: Component3D<ImageComponentData>

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ImageComponent class.

Properties

Property

Modifiers

Type

Description

_changeCallbacks

protected

{ opacity: (value: any) => void; }

opacity

number

*************************************************************** Public API ***************************************************************

Methods

Method

Modifiers

Description

_getBBoxImp(target)

protected

_onCreateCollisionMesh()

protected

dispose()

protected

init()

protected