码迷,mamicode.com
首页 > 其他好文 > 详细

Sprite Editor

时间:2014-06-02 18:09:17      阅读:311      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   a   http   

Sprite Editor

  在Unity3D中,一个图片可以有多种类型(如下图)。对于2D游戏开发,最常用的类型就是Sprite。

  bubuko.com,布布扣

  下图是Sprite Texture的属性,Packing Tag用于指定packing在哪一个tag。Filter Mode指定Texture的Filter模式,就是最近点、双线性、三线性。最主要的是Sprite Editor按钮。

  bubuko.com,布布扣

  SpriteEditor用于编辑一个Texture,把Texture切分成一个个sprite。除了上图外,也可通过Window->Sprite Editor打开。

  bubuko.com,布布扣

  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.

  当创建一个sprite矩形时,会出现下图的编辑框

  bubuko.com,布布扣

  Autoslice分为Automatic、Grid两种模式。

  bubuko.com,布布扣bubuko.com,布布扣

  其中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

Sprite Editor,布布扣,bubuko.com

Sprite Editor

标签:c   style   class   blog   a   http   

原文地址:http://www.cnblogs.com/tekkaman/p/3764439.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!