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"

Component adds billboard to sprite.


I have an idea of what I'm looking for in the end not the easiest way to do it. I am making a side scroller. While I am laying out the levels I forget which environment pieces are destructible. With my setup I can drag any sprite into the level and add a "health component" to the sprite. It is then destructible.

What I would like to do is when I add the " health component" to the sprite I get some kind of visual indicator telling me at a glance that that sprite has a health component. So when I'm looking over the level from a far I know which pieces can be destroyed. My first thought was the health component adds a billboard with a specific icon in front of the sprite, or maybe a text renderer with the word "Destructible". I just don't know how to have a component add another component but also know if I remove the original component.

I'm trying to make this as automatic as possible so when I eventually farm out level design the LD will have it as easy as possible. I'm also open to suggestions, something that would be easy to implement in c++.

Thanks Russ

Product Version: UE 4.20
more ▼

asked Sep 18 '18 at 01:00 AM in C++ Programming

avatar image

25 3 6 8

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

1 answer: sort voted first

Just have the Destructible text on the health compintent and mark the component class as Hidden In Game. Then it will not show the Destructible label during gameplay just only when you are editing the level. No logic required.

more ▼

answered Nov 28 '18 at 01:32 AM

avatar image

3.8k 18 20 20

(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