Stretchable 9Patch Panel

Tagged:

This is a simple entity that uses 9 separate png files to create an infinitely stretchable panel. It wraps or tiles the textures as opposed to stretching them. See image for example

This entity makes it easy to create background panels, buttons or other things that may need to change shape. When the Width or Height property are set on the Entity, an event triggers to update the panel's textures.

*NOTE* The event file that should accompany this did not export. I have filed a bug with Vic and will reupload once the Event exports correctly. In the meantime, just call UpdatePanelSize(Height, Width) when the size changes and it should update.

Stretchable 9Patch Panel
Product File: 
Syndicate content