Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by edis7771 · Jun 30, 2015 at 12:32 PM · animationtriggermecanimsound

Totally new noob to mecanim and unity itself - Trigger animation?

Hi, currently I'm trying to achieve this:

When my character goes through the door, a woman turns to him and starts talking and also moving towards him, but i just can't find any tutorials on how to do that. I already have made the animations all i need is to apply them...

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by LaneFox · Jun 30, 2015 at 12:40 PM

You can use SetTrigger in the Animator component to fire triggers in your AnimationController. You'll have to get a reference to the component first with GetComponent() then send SetTrigger commands to it.

For the movement/etc you'll setup trigger zones and use OnTriggerEnter or use Coroutines in conjunction with WaitForSeconds to choreograph the timing of the cutscene but that all depends a lot on how your animations are setup.

To make the character move you'll have to turn the character, probably using LookAt and then using the animation to move the character with Root Motion. If you're not using root motion (using in-place animations) you'll have to translate the character's position manually using Translate or MovePosition (Rigidbody only).

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image edis7771 · Jun 30, 2015 at 05:09 PM 0
Share

Okay, well that seem hard enough, is there a detailed(almost step by step lol) version of what u just told me somewhere out there? Because I'm totally new to unity

avatar image Hellium · Jun 30, 2015 at 05:11 PM 0
Share

I am sorry, I can't stand "Explain me, I am a noob to Unity".

There are plenty of tutorials of Unity all over the web, the ones on the Unity website itself are very good. Every persons new to Unity should watch them before co$$anonymous$$g here asking questions whose answer is in the tutorials...

avatar image LaneFox · Jun 30, 2015 at 05:17 PM 0
Share

These are all references to the API. If you do not have a basic understanding of C# then you won't be able to do what you want and need to review the tutorials. No one can make a step by step for every single thing you need to do in Unity and this issue in particular is largely related to scripting. You have to learn the fundamentals and afterwards you'll understand how to do just about anything you want. If you have specific issues coding and need help, feel free to ask about those problems but like Hellium says - put forth the effort first.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Why isn't my animation being played? 0 Answers

Mecanim Triggers Not Deactivating 0 Answers

Trigger Animation Instantly? 2 Answers

on trigger enter - play mecanim animation 0 Answers

Mecanim animation events not working properly 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges