Panel Sprite (9-patch) Object

Panel Sprite, also called 9-patch, is an object showing an image that can be resized by stretching or repeating the edges and corners as well as the filling. Read more explanations about it.

Panel Sprite ("9-patch")

An image with edges and corners that are stretched separately from the full image.

Object actions

Height
Modify the height of a Panel Sprite.

Image name
Change the image of a Panel Sprite.

Tint color
Change the tint of a Panel Sprite. The default color is white.

Change Panel Sprite opacity
Change the opacity of a Panel Sprite. 0 is fully transparent, 255 is opaque (default).

Width
Modify the width of a Panel Sprite.

Object conditions

Height
Check the height of a Panel Sprite.

Opacity
Compare the opacity of a Panel Sprite, between 0 (fully transparent) to 255 (opaque).

Width
Check the width of a Panel Sprite.

Object expressions

Expression Description
Object.Opacity() Opacity

This page is an auto-generated reference page about the Panel Sprite (9-patch) Object feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.