Texture Store

Holds up to ten pictures under names you pick, so other parts of the Lens can find each one. It shows nothing on the screen by itself.

Utilities & Storage

Asset stores, saved data, and the core building blocks behind bigger experiences.

Made with this block

Inputs

assetName0string

Name identifier for texture slot 0

assetTexture0texture

Texture for slot 0 (paired with assetName0)

assetName1string

Name identifier for texture slot 1

assetTexture1texture

Texture for slot 1 (paired with assetName1)

assetName2string

Name identifier for texture slot 2

assetTexture2texture

Texture for slot 2 (paired with assetName2)

assetName3string

Name identifier for texture slot 3

assetTexture3texture

Texture for slot 3 (paired with assetName3)

assetName4string

Name identifier for texture slot 4

assetTexture4texture

Texture for slot 4 (paired with assetName4)

assetName5string

Name identifier for texture slot 5

assetTexture5texture

Texture for slot 5 (paired with assetName5)

assetName6string

Name identifier for texture slot 6

assetTexture6texture

Texture for slot 6 (paired with assetName6)

assetName7string

Name identifier for texture slot 7

assetTexture7texture

Texture for slot 7 (paired with assetName7)

assetName8string

Name identifier for texture slot 8

assetTexture8texture

Texture for slot 8 (paired with assetName8)

assetName9string

Name identifier for texture slot 9

assetTexture9texture

Texture for slot 9 (paired with assetName9)

Functions

getTextureByNameTexture

Returns the texture associated with the given name, or null if not found

getTextureByIndexTexture

Returns the texture at the given index in the loaded list, or null if out of range

getAllTexturesObject

Returns an object mapping all loaded names to their textures

getTextureCountint

Returns the number of successfully loaded texture slots