ResourceImporterBitMap

Inherits:ResourceImporter<RefCounted<Object

Imports aBitMap resource (2D array of boolean values).

Description

BitMap resources are typically used as click masks inTextureButton andTouchScreenButton.

Tutorials

Properties

int

create_from

0

float

threshold

0.5


Property Descriptions

intcreate_from =0🔗

The data source to use for generating the bitmap.

Black & White: Pixels whose HSV value is greater than thethreshold will be considered as "enabled" (bit istrue). If the pixel is lower than or equal to the threshold, it will be considered as "disabled" (bit isfalse).

Alpha: Pixels whose alpha value is greater than thethreshold will be considered as "enabled" (bit istrue). If the pixel is lower than or equal to the threshold, it will be considered as "disabled" (bit isfalse).


floatthreshold =0.5🔗

The threshold to use to determine which bits should be considered enabled or disabled. See alsocreate_from.


User-contributed notes

Please read theUser-contributed notes policy before submitting a comment.