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"

Remove widget from widget component (3d widget)

I want to clear a Widget Component (basically a 3D widget). But I don't know how to do it.

I tried using "set widget" without connecting anything to the "widget" pin. But it doesn't do anything. Also I tried to get User Widget Object and remove it "from parent". But still the widget exists.

I don't want to destroy the WidgetComponent, just to remove it's user widget.

Thank you.

Product Version: UE 4.22
Tags:
more ▼

asked Jun 10 '19 at 07:06 PM in Blueprint Scripting

avatar image

Cucharón
26 3 8 13

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

1 answer: sort voted first

Feed the component null reference:

alt text

capture.png (27.5 kB)
more ▼

answered Jun 11 '19 at 10:35 AM

avatar image

Everynone
15.2k 77 25 62

avatar image Cucharón Jun 11 '19 at 03:57 PM

It doesn't work.

avatar image Everynone Jun 11 '19 at 04:44 PM

Ah, you're the one who keeps downvoting people who try to help you.


You can't change the widget class run-time afair, but you should be able to replace the widget object. Essentially, create a helper widget with no elements and set it as the component's widget. As in the above image but with something valid instead.

While I'm surprised the null reference does not work, I'm not shocked and I could swear it used to. Anyhow, replacing the widget object should work, 99% sure; even though it's sort of a hack-around.

avatar image Cucharón Jun 11 '19 at 04:58 PM

If I say in my question that something does not work and someone answers to try exactly what I said that does not work. That's not "try to help".


If there is no way to remove it, your solution of the empty widget could work (uggly, but work). Thank you.

avatar image Everynone Jun 11 '19 at 05:03 PM

If I say in my question that something does not work and someone answers to try exactly what I said that does not work. That's not "try to help".

I simply did not read your question carefully enough. Won't happen again, rest assured.

(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