Unity之使用Sprite Editor建立Sprite精靈
阿新 • • 發佈:2018-12-19
手動切割
步驟一:將Sprite匯入專案。
步驟二:選中Sprite,在Sprite的Inspector檢視中選擇Texture Type,改為Sprite(2D and UI)。
步驟三:選擇Sprite Mode,改為Multiple。
步驟四:單擊Sprite Editor按鈕,彈出Sprite Editor檢視。
步驟五:在檢視中用滑鼠框選出要提取的影象元素。
步驟六:單擊左上角的Trim按鈕,軟體會自動對齊所選的物體。
步驟七:在Name輸入框中輸入Sprite對應的名稱。
步驟八:設定Pivot中心位置,一般為Center。
步驟九:單擊右上角的Apply按鈕切割圖片。
自動提取
步驟零:前面步驟與上面相同,省略。
步驟一:在Sprite Editor編輯器的左上角單擊Slice按鈕。
步驟二:單擊Slice按鈕即可自動框選出相應的Sprite。也可以在編輯器中單獨選中Sprite來調節各項引數。
步驟三:單擊Apply按鈕確定。
參考文獻:unity 5.x 從入門到精通(Unity Technologies主編)