【Sprite Editor】
在Unity3D中,一個圖片可以有多種類型(如下圖)。對於2D游戲開發,最常用的類型就是Sprite。
下圖是Sprite Texture的屬性,Packing Tag用於指定packing在哪一個tag。Filter Mode指定Texture的Filter模式,就是最近點、雙線性、三線性。最主要的是Sprite Editor按鈕。
SpriteEditor用於編輯一個Texture,把Texture切分成一個個sprite。除了上圖外,也可通過Window->Sprite Editor打開。
The slider at the top right controls the zoom, while the color bar button to its left chooses whether you view the image itself or its alpha levels.
The most important control is the menu at the top left, which gives you options for separating the elements of the image automatically. Finally, the and buttons allow you to keep or discard any changes you have made.
The
當創建一個sprite矩形時,會出現下圖的編輯框
Autoslice分為Automatic、Grid兩種模式。
其中Method選項比較重要,解釋如下:
The option will simply replace whatever is already selected, will attempt to create new rectangles while retaining or adjusting existing ones, and will add new rectangles without changing anything already in place.
參考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/Manual/SpriteEditor.html