Skip to content

Search

Documentation

texture

An image and the import settings it is read with. A texture property takes a plain image path, which reads the image with its sidecar; this is for one…

Files live in textures/. Used by boolean2d · texture, boolean3d · texture, line2d · texture, mesh · texture, multimesh2d · texture, multimesh3d · texture, particles2d · texture, particles3d · texture, polygon · texture, shape2d · texture, shape3d · texture, sprite · texture.

An image and the import settings it is read with. A texture property takes a plain image path, which reads the image with its sidecar; this is for one use of a picture that reads it differently. Any key the image's sidecar takes may be written here, and wins over it.

type = "texture"
source = "art/hero.png"
filter = "nearest"                # this use crisp, the sidecar's smooth
pixels_per_unit = 32

Are you sure?