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 use Add ChildActorComponent to dynamicallly spawn blueprint instances?

I am trying to spawn Instances of a blueprint class from an other blueprint. I want to see them during construction so I use the constructor function Add ChildActorComponent. But I must be doing something wrong because I don't see any objects appearing.

alt text

alt text

Product Version: Not Selected
more ▼

asked Apr 28 '14 at 04:10 AM in Blueprint Scripting

avatar image

48 7 16 15

avatar image ivanesses Jun 24 '14 at 09:34 AM

still no progress?

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

2 answers: sort voted first

Is BP Container your variable from the other blueprint? Are you actually exposing and pulling the variable from the other blueprint somewhere else?

Search blueprint communication. There is a tutorial on exposing variables and functions from other blueprints and a certain way you need to bring them into a different BP.

more ▼

answered Apr 28 '14 at 08:56 AM

avatar image

1.8k 131 68 110

avatar image OccultArt Apr 29 '14 at 05:03 AM

BP_Container is a variable with the type of the other blueprint I want to spawn. In the direct blueprint communication tutorial they specify a target instance in the details panel of the blueprint (a reference to an instance of the blueprint already in the scene). I want to spawn an instance of the other blueprint on the fly (in the constructor). What type should BP_Container be?

avatar image OccultArt May 02 '14 at 03:53 AM

Can someone please explain what I might do wrong, and the exact steps I should take to dynamically create blueprints from an other blueprint during constuction/in the editor?

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

For Add ChildActorComponent, you have to select the node in the Construction Script graph and choose a Child Actor Class from the Details panel. Target needs to be left set as Self (empty pin) as you are adding the component to the blueprint you are calling the node in.

Hope that helps!


more ▼

answered Jun 24 '14 at 07:01 PM

avatar image

Steve Allison STAFF
4.4k 123 58 209

avatar image ivanesses Jun 24 '14 at 07:14 PM

Hello, Steve! But what would you do if I want to edit actor or actors in the editor after Add ChildActorComponent? This Question I asked also here link text

I followed your advise and created BP Actor "TEST" and via Construction Script called "Add ChildActorComponenet" twice. But it is not useful because It is not possible to separate actors (selecting individual actor to tune it's parameters) http://snag.gy/YATfT.jpg

avatar image Steve Allison STAFF Jun 24 '14 at 07:44 PM

This node adds an Actor as a Component of the blueprint you call it in, meaning you won't be able to select the added Actor in your level editor because it is a component of the parent (placed) Actor.

avatar image ivanesses Jun 24 '14 at 07:53 PM

Steve, My Roof is on fire. You are specialist in it and you think right. Please, show me the way I can manage this problem. Is there a special recipe to spawn editable actors in the editor from BP or any? Trying to solve this PUZZLE a long time already and squeezed like a lemon)

(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