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"

Hit Input Key From BP


I have done an animation within Level Blueprint includes different nodes including timeline and arrays driven by my InputAction in Level BP script. For now, I added Spacebar to interact this animation. I also want this to be driven from my GUI. When I click specific button, I want my blueprint to hit "Spacebar" for me. I know it doesn't make sense, but I am experimenting stuff. Is there a way to do this?

If you want to read more what I am trying to do: I have a day/night cycle in Level BP. When you hit Spacebar, it cycles through day and night. I have also a GUI where you can change some stuff, and I want to be able to change the sun within this GUI as well. I tried creating a function for day/night cycle and it doesn't accept Timeline in it. Considering my script is full of nodes affecting each other, one way to solve this seems like the casting but I am not experienced enough to cope with so many castings at the same time

Thank you so much for your help! Can

Product Version: Not Selected
more ▼

asked Apr 23 '15 at 01:04 PM in Blueprint Scripting

avatar image

8 7 9 10

avatar image spyro Apr 23 '15 at 01:15 PM

What exactly is your question?

avatar image Excalith Apr 23 '15 at 01:18 PM

It is so nonsense that I couldn't even explain it, sorry.

Shortly: when I click a spesific button from my UI, I want it to hit Spacebar for me (to activate an animation I did for day/night cycle). I am feeling creating a function and casting to it seems to be the better way, any ideas how can I do this?

avatar image Excalith Apr 23 '15 at 02:22 PM

That makes much more sense then firing up spacebar, thanks! I will try that now

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

1 answer: sort voted first

AFAIK there isn't a direct way to simulate input events.

Why don't you simply create a custom event and call this from your spacebar input event and from your animation as well? Maybe this will help you:


more ▼

answered Apr 23 '15 at 02:14 PM

avatar image

1.7k 105 117 229

(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