27
2014
Legacy Character To Mecanim (+navPaths)
Legacy Character to Mecanim (+navpath)
*This is just extra notes for the Mecanim Navpath Project, to add new characters easily (from old rigged characters) :
http://unitycoder.com/blog/2014/12/23/mecanim-nav-mesh-pathfinding/
TUTORIAL
– Download some rigged character from Asset Store
– I’ve tested these ones to work fine so far, they work fine:
(Soldier) https://www.assetstore.unity3d.com/en/#!/content/122
(Monster) : https://www.assetstore.unity3d.com/en/#!/content/2558
(Tiny warrior) : https://www.assetstore.unity3d.com/en/#!/content/16070 *Already mecanim
– Import character to the project [see image#2]
– Select, for example, that soldier from the Project window
– In the Inspector, Rig tab: Set Animation type to: Humanoid [see image#3]
– [x] Optimize game objects (not sure what it does but why not..)
– Hit Apply
– Drag & Drop the character to scene (use the example scene) [see image#4]
– Copy all the components from the example “char_robotGuard_003” character into the soldier gameobject
– In the Animator component, assign: “EnemyAnimator” as the controller
– Hit play and bam! Easy, mecanim animated walking AI agent!
You could then adjust character rigidbody weight, AI speed, so that they wont all move at the same speed..
*if the character is already a mecanim one, you don’t need to do those parts in the import settings, just copy the components and assign controller.
—
image#2: importing package
—
image#3: Rig type to Humanoid
—
image#4: drag & drop character to scene
—
image#5: Copy these components to the new character (*that Sphere Collider is not used, no need to copy)
*From that small gear dropdown button, you can select “Copy Component”, have to do that 1 by 1..
* Same gear dropdown button has the Paste option:
—
image#6: Finally assign Controller to Animator component, pick “EnemyAnimator” :
Related Posts
Leave a comment
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on