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"

how to set widget component visibility to use widget button onclick

I want to use a widget button onclick to set a actor's widget component to rendering visibility,but i don't know how to do.

Product Version: UE 4.15
Tags:
more ▼

asked Apr 20 '17 at 03:57 PM in Blueprint Scripting

cjcujimmy gravatar image

cjcujimmy
1 1

Xosh project gravatar image Xosh project Apr 20 '17 at 04:02 PM

you talk about 3d widget component, just want to be sure before giving you the answer.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Basically how it done.

make sure the actor is in the level before doing this.

alt text

example.jpg (730.2 kB)
more ▼

answered Apr 20 '17 at 04:33 PM

Xosh project gravatar image

Xosh project
242 2 5 14

cjcujimmy gravatar image cjcujimmy Apr 21 '17 at 04:18 AM

Thanks a lot,i set it,but it doesn't show it.i think i set the wrong variables with widget component.alt text

擷取.png (266.2 kB)
Xosh project gravatar image Xosh project Apr 21 '17 at 05:13 AM

You need to stock the widget component inside a variable after your «get all actor of class». Another solution will be to use «get user widget object». But start by reproduce exactly what I done.

cjcujimmy gravatar image cjcujimmy Apr 21 '17 at 10:33 AM

sorry,i want to ask how to connect this variably to the get all actor of classalt text

擷取2.png (314.5 kB)
Xosh project gravatar image Xosh project Apr 21 '17 at 11:13 PM

Create a variable from the get.

cjcujimmy gravatar image cjcujimmy Apr 22 '17 at 02:55 AM

Thanks a lot,i do it work,i am very appreciate. Very very thanks.

Xosh project gravatar image Xosh project Apr 24 '17 at 06:07 PM

No problem, don't forgot to make this question as resolved !

(comments are locked)
10|2000 characters needed characters left
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