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"

Get all child classes of a parent class


I got a parent bp with multiple child bps. I would like to know how I can get all the child bps when none of them spawned. I can't do it with a list of all the child bps since the amount of them is dynamic. I already found some answers which say I should create my own c++ blueprint widget, but they are all outdated and I don't know any c++. :(

This is the exact same question from 2015: https://forums.unrealengine.com/development-discussion/c-gameplay-programming/43078-get-all-children-classes-of-a-bp-in-a-function-library

Thank you very much :)

Product Version: UE 4.22
more ▼

asked Jul 04 '19 at 07:10 AM in Blueprint Scripting

avatar image

6 1 2 2

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

1 answer: sort voted first

Hello JanSO,

I found this problem interesting so I played a bit with it. Created a actor class as parent and then made two children. Used line trace to get the results, just as a proof of concept.

Placed all three in the world. You mentioned you will have them created dynamically so I created a Spawn Node too. For the sake of simplicity I'm spawning it above my character. As a class I'm using one of the child (baby boy) actor.

Maybe this will help you get where you need to, if not then at least I had some fun making this. See screenshots below.

Comment due to max screenshot limit.

alt text alt text alt text alt text alt text

script-part1.png (167.0 kB)
script-part2.png (211.5 kB)
crudespawner.png (150.7 kB)
more ▼

answered Jul 04 '19 at 02:57 PM

avatar image

805 4 5 7

avatar image DonBusso Jul 04 '19 at 02:59 PM

Comment due to max screenshot limit.

alt text alt text alt text alt text

avatar image JanSO Jul 05 '19 at 07:37 AM

Hello DonBusso,

thank you very much, but you missed, that none of the actors is ever spawned :( Sorry if you have wasted your time. I was able to figure out how to create my own bp node to do what I was looking for. I will make a YouTube video out of it and link it to this question for everyone else having trouble.

avatar image DonBusso Jul 05 '19 at 10:52 AM

That's good and it's never a waste, always learn something new in the process. :)

(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