Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 christopholus · Feb 10, 2010 at 06:45 PM · animationlayersevent

Animation Event not working with syncLayer ?

I'm utilizing the new Animation Editor in Unity 2.6.1 adding Animation Events to clips in the timeline. However it doesn't seem to work if using the SyncLayer funtion in the animation script. For example, I'm using the animation editor to add an event to the "run" animation to call a "playFootStepSound" function, it simply does not work if the animation's layer is set to syncLayer.

I have seen this issue briefly mentioned on the forums (see below), but there hasn't been a confirmation whether this is a known bug to be fixed soon, or whether there are workarounds etc.

It would be a shame not to be able to use both of these essential and powerful features in conjunction.

http://forum.unity3d.com/viewtopic.php?t=13333&highlight=animationevent

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by runevision · Feb 12, 2010 at 01:29 PM

I can reproduce this bug. We'll work on getting it fixed.

Comment
Add comment · Show 1 · 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 christopholus · Feb 12, 2010 at 09:43 PM 0
Share

I look forward to that, thanks!

avatar image
0

Answer by Gabriel 1 · Feb 27, 2010 at 08:51 PM

This bug was also in 2.5. It also doesn't execute Animation Events when the animation is cross fading.

Comment
Add comment · 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
0
Wiki

Answer by MaDDoX · Dec 21, 2010 at 01:36 AM

I can confirm this bug is still happening in 3.1. It might be just an oversight, or the way Unity designed things. Apparently Unity only considers that an animation is "active" - for event checkings, etc - after any transition that are blending into it are complete. For our game we had to add a "fire hack" toggle for the weapons with instant or very early fire (relative to the animation start). For weapons with a relatively long pre-attack, ie. attack starts after some preparation move, events work just fine. Another alternative is having another layer with fake animations (ie. that doesn't affect the actual animations) but with the same duration and firing the events instead of the main animations. These fake animations would always transition in cuts instead of crossfading. The big question in that case would be, if you can't see the relevant animation (eg. attack) playing to sync the event, why bother? True, better add any short delay manually.

Ideally, all events on all transitioning animations should be considered, always. Can you make a plight for us to get this changed, Rune? :)

Comment
Add comment · 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

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

No one has followed this question yet.

Related Questions

Animator Layer executes when weight equals zero 1 Answer

Good design when starting animation and triggering event in animation? 2 Answers

Animation Event not working properly 0 Answers

Mecanim avatar masks don't work. 0 Answers

Animation Event Lag 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