Use legacy animation system in Unity
2014-08-22 11:55
393 查看
1.For imported animation
If you're using the Animation component,you need to import the rig as Legacy.
If you import the rig as Humanaoid, you need to use anAnimator component (Mecanim) and an Animator Controller. You can'tuse animation.Play().
Assuming that you're using the legacy animation system (andnot Mecanim):
Open the Animation view window (Window > Animation). Selectyour character. Then select an animation clip from the drop-downmenu. This will allow you to view (and edit) the animation curvesdefined on each bone.
If you see "Clean Up Leftover Curves," then for some reasonyour imported model's skeleton doesn't match the skeleton definedin the animation clip.
Otherwise, you can press the play button to play the animationclip your character in-editor.
Make sure all this works before writing any code.
2.For animation created by unity Mecanim
Set the inspector to Debug mode ,andthen set animation Type to 1(Default is 2 ),and uncheck LoopTimecheckbox.(Tips: you can change wrap Mode here too,defaultyou can't set the wrapmode of mecanim's animation)
If you're using the Animation component,you need to import the rig as Legacy.
If you import the rig as Humanaoid, you need to use anAnimator component (Mecanim) and an Animator Controller. You can'tuse animation.Play().
Assuming that you're using the legacy animation system (andnot Mecanim):
Open the Animation view window (Window > Animation). Selectyour character. Then select an animation clip from the drop-downmenu. This will allow you to view (and edit) the animation curvesdefined on each bone.
If you see "Clean Up Leftover Curves," then for some reasonyour imported model's skeleton doesn't match the skeleton definedin the animation clip.
Otherwise, you can press the play button to play the animationclip your character in-editor.
Make sure all this works before writing any code.
2.For animation created by unity Mecanim
Set the inspector to Debug mode ,andthen set animation Type to 1(Default is 2 ),and uncheck LoopTimecheckbox.(Tips: you can change wrap Mode here too,defaultyou can't set the wrapmode of mecanim's animation)
相关文章推荐
- 坑_Unity中导入自建DLL报错:Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in
- DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|c
- /dev/hdb1 is apparently in use by the system; will not make a filesystem here!解决方法
- Unity dll Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the mod
- /dev/sdc is apparently in use by the system; will not make a filesystem here
- [Solved]: System.Data.SqlClient.SqlError: Exclusive access could not be obtained because the database is in use.
- 格式化硬盘时报错: dev is apparently in use by the system; will not make a filesystem here
- Use AnimationDrawable in a SurfaceView
- /dev/sdxx is apparently in use by the system; will not make a filesystem here! 解决方法
- Know How And When To Use System.Message_Level To Control Messages In Oracle Forms
- ERROR: The Nouveau kernel driver is currently in use by your system.
- 分区无法格式化?/dev/sda2 is apparently in use by the system; will not make a filesystem here!
- How to Use `strace` to Trace the System Call in Linux
- How to make a Dialogue System in Unity
- /dev/XXX is apparently in use by the system; will not make a filesystem here!
- use opencv in android system
- Unity Animation System(动画系统)
- shader 2 : use shaderToy in unity
- 挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!)