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"

Toggle visibility is not working

Hi people, I have problem with my change material blueprint. Everything is working great except that my toggle visibility function is not working. My blueprint has 3 components: static mesh(cone), light and box that is used like trigger for my widget blueprint. For some reason I cannot toggle visibility of my box and light. As you can see my visibility is unchecked.blueprintin game Thanks in advance. Manja

Product Version: Not Selected
Tags:
toggle1.jpg (1.0 MB)
toggle2.jpg (855.1 kB)
more ▼

asked May 06 '15 at 01:18 PM in Blueprint Scripting

avatar image

manja
14 8 8 11

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

1 answer: sort voted first

Hook up the space bar event to a print node and check that the spacebar input is getting through to that blueprint. Most blueprints don't receive input events unless you explicitly let them receive input.

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/ActorInput/Blueprints/index.html

more ▼

answered May 06 '15 at 01:31 PM

avatar image

kurtrussellfanclub
431 19 14 36

avatar image manja May 06 '15 at 02:44 PM

Thanks kurtrussellfanclub, It's working, but I have another problem now.. My character controller is set on space bar too and now is not firing. So, I realized that I have to change my aproach to the problem. How can I set my cone shape blueprint to call onclick event for my box_changecolor? I dont know how to explain so here are the screensoots:alt textalt textalt textalt text on the las one I tried adding widget and it is showing buttons when I click on box but I dont know how to change cone blueprint to work with it and change materials.

Manja

avatar image kurtrussellfanclub May 06 '15 at 10:59 PM

I don't really understand what kind of experience you're trying to make and what all the relationships are between your classes but if you're trying to get the same input on two blueprints (e.g. space bar firing on both) then you need to go into the input event and turn off "consume".

By default, only one thing will take in each input and after it's handled the button press will be eaten up and won't get passed to other objects.

avatar image manja May 07 '15 at 08:05 AM

that did the trick :) thanks a lot!

(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