zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    内联函数和宏
    C++内联函数与宏定义
    C++函数声明和定义深度解析
    C++中的头文件和源文件
    国外程序员整理的 C++ 资源大全
    c语言中的字符数组与字符串
    iOS应用架构谈(二):View层的组织和调用方案(中)
    iOS应用架构谈(一):架构设计的方法论
    解决xib约束冲突
    tableView设置首尾
  • 原文地址:https://www.cnblogs.com/tekkaman/p/3764439.html
Copyright © 2011-2022 走看看