Sprite Editor


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 Slice menu at the top left, which gives you options for separating the elements of the image automatically. Finally, the Apply and Revert buttons allow you to keep or discard any changes you have made.

  The Trimbutton next to the position settings will resize the rectangle so that it fits tightly around the edge of the graphic based on transparency

  當創建一個sprite矩形時,會出現下圖的編輯框

  

  Autoslice分為Automatic、Grid兩種模式。

  

  其中Method選項比較重要,解釋如下:

  The Delete existing option will simply replace whatever is already selected, Smart will attempt to create new rectangles while retaining or adjusting existing ones, and Safe will add new rectangles without changing anything already in place.

參考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/Manual/SpriteEditor.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM