• 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 /
  • Help Room /
avatar image
0
Question by Uktol · Sep 21, 2015 at 02:43 PM · animationtimeloop animaiton

Make something happen at a specific time in a looping animation

Hey,

I have made a script which checks at what time the animation is and whenever it hits a specific time it will do an attack. But since the animation is looping it only works one time because even though the animation is looping the time just continues.

I hope someone can help me with this. Thanks,

-Teddynieuws

Comment
Add comment · Show 2
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 Vivek-Joshi · Sep 25, 2015 at 01:08 PM 0
Share

Hey @Uktol is it a 3D object? whose animation you are playing? Or you are using sprite animation?

avatar image Uktol Vivek-Joshi · Sep 30, 2015 at 12:07 PM 0
Share

Hey, i'm sorry for responding late.

It's an animation for a 3D object.

Thanks for helping me :)

-Teddynieuws

1 Reply

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

Answer by MadDevil · Sep 30, 2015 at 12:30 PM

@Uktol

if its an mecanin animation clip than you can use events for "Making something happen".

http://answers.unity3d.com/questions/615041/mecanim-animation-events-1.html

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 Uktol · Sep 30, 2015 at 12:32 PM 0
Share

Awesome, that's exactly where i'm looking for. Thank you!

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

35 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do you loop an animation without entity reverting to scene view position in between? 0 Answers

Animation not loopping 0 Answers

Why is my animation being started, but is not actually playing? 1 Answer

how to change the animation lengh by script? 0 Answers

Quick Question 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges