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"

Allowing StaticMeshActor blueprint to take keyboard input?

I want to change the size/properties of multiple objects of the same class at once. I can do this in the Level Blueprint by looping through the elements and then executing stuff but I would think it would make more sense to be able to do it in the class blueprint itself.

My problem is that I can't receive input on any of the objects unless I possess it. So I want to be able to just receive keyboard input within the StaticMeshActor blueprint itself. Is there any way of doing this or do I have to use another class type. Thanks in advance for any help :)

EDIT: The reason I'm using a StaticMeshActor is because I want to be able to drag materials onto the objects directly, and this was the only way I could see of doing it.

Product Version: Not Selected
more ▼

asked Jan 17 '15 at 08:59 PM in Using UE4

avatar image

8 2 4 10

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

1 answer: sort voted first

Hi Nstens,

You can do this a few different ways.

  • Generally the best method to do this is to Enable and Disable player input in the blueprint Event Graph. This will make sure that your input isn't consumed by an actor when you don't want it to be.

alt text

  • To set this for all instances of the blueprint, open the blueprint & go into the Defaults tab. Under Input > Auto Receive Input > set this to 'Player 0'.

  • To do this for only one specific instance of the blueprint, while the blueprint is selected in the level, go to the Details panel. Under Input > Auto Receive Input > set this to 'Player 0'.

If I misunderstood or if you have any questions, please let me know.



enableinput01.jpg (109.2 kB)
more ▼

answered Jan 19 '15 at 08:16 PM

avatar image

41k 1009 183 494

(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