Author: Wang Xuan Yi, source: http://www.cnblogs.com/neverdie/Reprinted, Please keep this statement. If you like this article, click [recommendation ]. Thank you!
Introduction
The last time we talked about MonoBehaviour's past and present, we learned that every GameObjec in the game is controlled by a script. This time we started to use Sprite in Native 2D in Unity, and use Animation to make
2d game, the operation of the wizard needs, is often two points:
1, Static Wizard: General to do background display and so on
2, Sprite Animation: Frame animation, skeletal animation, etc.
Statement: Following the unity of the operation, based on Unity3d 4.3.4, I am a beginner unity, no other version.
First, the wizard file import
Method 1:
If the project is set
Today I made a UI interface, which is a friend interface with several friends item on the interface. You need to dynamically display the corresponding avatar for each TEM's Avatar object (image). Try to use the Ugui atlas to load, the implementation is as follows:1. First, you need to know the Spriteatlas function, you can save some of the sprite to be packaged in the settings. (The significance of the detailed parameter setting needs to be further st
new C # script and name it spriteoutline. The component will process updates to our materials in the editor and at run time, turn off or turn on contour effects, and change the outline color. You can also use this component in animations to enable or disable the outlines of specific animation frames or to change the outline color.usingUnityengine; [Executeineditmode] Public classSpriteoutline:monobehaviour { PublicColor color =Color.White; PrivateSpriterenderer Spriterenderer; voidonenable () {
Unity provides Chettu for the 2D Sprite, currently the latest version of the 5.2.2 offers three ways:
Automatic
Grid by Cell Size
Grid by Cell Count
According to the principle should be satisfied with a variety of plot, but if we have a pure and transparent elements of the diagram, and we need to take the map by number, then unity Chettu will be slightly more th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.