x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Unity's Animator "Trigger" and "Exit Time" transition parameters in Unreal Engine?

So I'm porting my game from Unity to Unreal to see which is better and at this point I can't find one thing, a "Trigger" and an easy "Exit Time" parameter in animation transitions, haven't found anywhere on Unreal Answers yet.

In Unity's Animator system you could set up floats, booleans, integers an EXIT TIME and TRIGGERS as transitions parameters between animations, however, I can't seem to find something equivalent in Unreal. The way they functioned were as follow:

Exit Time: A transition to another state can only occur after a certain % of the total duration of the animation has played. If my Exit Time is 0.7 and the animation is 2 seconds long, the transition can only occur after 1.4 seconds of the animation has passed. Trigger: A one time boolean that you set up via the code animator.SetTrigger("TrigggerName"). The trigger would stay true UNTIL IT WAS USED IN A TRANSITION, then it would be immediately be set to false.

Both of these I haven't found a good way of doing yet.

My use case is the following: My character has a 3 hit combo, playing 1 part of the combo each time the player hit the attack button, but he can only transition to the next part of the combo if a certain % of the previous one has already completed and the player pressed the attack button. Using a boolean is not very good, since I would have to manually set it to false once the state has started (and it's a bad way IMO, if a boolean is used for multiple transitions, then I would have to check multiple things just to set it as false)

So, Exit time and Trigger animation transition parameter, where can I find them? Am I missing something? Help.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 25 '15 at 03:14 AM in Blueprint Scripting

avatar image

Velsen
141 4 5 6

avatar image RubDawg Jan 19 '16 at 12:13 AM

Yes, I would like to find something like this too!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I'm currently looking for a solution for triggers. The solution will probably be setting a bool to true for one frame when we want to trigger an event, yuck! As far as exit time, this one is simple but there is one important caveat. Make sure your animation is not set to loop as that is the default behavior.

There are plenty of ways to do it, here are two examples. One is based on a ratio, the other is based on the actual time elapsed on the animation. Simply hook the compactor to the result node in your transition. alt text

Don't forget to make your animation not loop. A looping animation will reset the time elapsed and could cause our transition condition to never be met. alt text

exittime_bp.png (65.1 kB)
loopsetting_bp.png (26.4 kB)
more ▼

answered Dec 16 '16 at 05:21 PM

avatar image

chatrat12
11 1 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question