|
Deki 0.40.1
带可视化编辑器的模块化 C++ 引擎,支持 2D 和 3D
|
本指南尚未翻译。
How to get an image into your game and on the screen.
Drag a PNG from your computer onto the Asset Browser, or copy it into the project's assets folder. The editor imports it on its own.
| Field | What it does |
|---|---|
| Tint Color | Multiplied into every pixel. White leaves the image alone. |
| Sorting Order | Higher numbers draw on top. |
| Render Mode | Normal draws it once. Tiled repeats it to fill Width and Height. Nine Slice stretches the middle and keeps the corners, for panels and buttons. |
For Nine Slice, press Edit 9-Slice... and drag the four guides to mark the corners.
When one image holds many sprites:
Each frame can now be chosen in a Sprite field. To make them move, see Animation.
Select the image in the Asset Browser. Its settings are in the Inspector.
| Setting | What it does |
|---|---|
| Format | How the pixels are stored. Automatic picks the smallest format the screen can show. |
| Max Size | Shrinks a big image to save memory. |
| Filter | Point keeps pixel art sharp. |
Default applies everywhere. Open a device under it to give that device its own values, such as a smaller Max Size on a device with little memory.
To swap the image, point a field at the other one in the Inspector: