Unity skills (1)

Source: Internet
Author: User

I. animation changes
1. The animation system before unity4 is called an animation component. The new animation system has changed to "mecanim ".
2. charactercontroller is a role collision server that handles collision areas. Thirdpersoncontroller is a role controller and its code is in thirdpersoncontroller. cs. It mainly controls role movement.
3. Bind The "charactercontroller", "thirdpersoncontroller", and "Third Person camera" components to the "fbx model" to control the "custom model.

Mecanim allows animation sharing between different models
1. Add avater to the fbx File

2. Add the processed model to the scenario.

3. Create an animation controller. Create an animation controller and drag it to the model. Double-click animation controller.

4. Open the set action under the animation clip and set the hierarchical relationship of the animation (the animation can be composed of sub-animations) and the transition relationship (set the transition condition, either a variable or a time transition ).

5. Write a script for controlling the animation and assign the script to the camera or other objects.

6. Assign the role object to the "animator" attribute of the animation control script and assign the initial value to the variables in the script.

Disadvantages:

1. Unity's built-in Avatar seems to only target the standard two-foot creature, such as human. Of course you can still make an estimate of the four categories, but it may not work. In addition, if the character has wings, floating bands, skirts, and other bones, it cannot directly correspond to Avatar.

2. the animator controller must be manually dragged to the animation or component of the character model. Although there are also ways to specify the editor in batches. However, it is very difficult to use a script to modify the animator controller during the running process after the release (not absolutely not, but a special method is required ). This increases the dependency on the editor and reduces the flexibility of control.

3. mecainm system animation is not applicable to assetbundle. That is to say, this animation system cannot be used for dynamic loading of network resources.
The entire role can be exported with the animator controller or separately, and cannot be used after being loaded.
This is a fatal injury. You can only do some small demos, or put all the resources together to package and release the project.

Ii. Model import
Import the model in unity, import the texture first, and then import the model.
1. Put the texture in the U3D asset folder first. At this time, each texture will have a path.
2. Return to 3D Max and point the path of each material to the U3D assest folder.

Iii. Others
Use of Halo:
Drag to flare slot

Remove components:
Right-click soft and choose remove.

Scaling the model:
Do not use a scaling tool. You can use the modeling software to import it. Otherwise, the model will be stretched.

Modify the script encoding mode (sometimes Chinese characters cannot be displayed ):
\ Unity \ editor \ data \ resources \ scripttemplates. Here, change "C # template/javasript/Boo" to "UTF-8" to display Chinese characters.

First person:
Capsules in the first person plus physical attributes of the Rigid Body

View drawcils:
Drawcils Tris is in the stats in the upper right corner of the game window. You can view the performance overhead at any time.

Shortcut Keys for comments and uncomments of multiple rows in the script:
CTRL + ALT + c

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.