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 spawn blueprint component in blueprint?

Hi, I made a custom actor component class(say USkill) in C++ and inherited it from blueprint(say FireballSkill).

I can spawn C++ class after I exposed it, but I can't find any method to spawn blueprint class(FireballSkill).

Product Version: Not Selected
Tags:
more ▼

asked Sep 12 '14 at 03:38 AM in Blueprint Scripting

avatar image

MrHwang
71 3 6 8

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

2 answers: sort voted first

It really should be possible via the "Spawn actor from class" function (not quite sure how it's done in C++ but it should be something similar.

And if you want to do it in blueprint you should be able to select it in the dropdown menu for the class pin.

more ▼

answered Sep 12 '14 at 11:26 AM

avatar image

Erasio
5.9k 291 86 293

avatar image MrHwang Sep 17 '14 at 06:14 AM

Thanks for answer.

But "Spawn actor from class" only works for Actor class and here I'm trying to spawn "Actor Component" class.

I can spawn actor component class defined in C++ with dedicated "Spawn XXXX Component" node,

but when I added custom actor component class in Blueprint, I can't see any node to spawn it.

avatar image Erasio Sep 17 '14 at 10:28 AM

What exactly do you want to spawn?

avatar image gibbsies Jan 07 '16 at 01:45 AM

I am having the same problem, perhaps I am choosing the wrong idea. I want to attach data (not visual data, just data) to an actor in an array, and was using an actorcomponent to represent this data. But I cannot figure out how to spawn these.

avatar image daveunreal Jul 13 '16 at 07:41 PM

if you want to purely save data, you should use SaveGame object, not actor component. And then use Create Save Game Object where you want to create data store objects.

avatar image MugenCity Feb 16 '16 at 03:40 AM

I'm running into the same issue. I am attempting to spawn MeshComponents dynamically, but can't actually create them?

avatar image Jarrod84 Mar 09 '16 at 01:39 AM

I can use the actor spawn, but because it's not a component spawn, the material function doesn't work with the line tracing. So, same problem.

avatar image Adam Davis STAFF May 06 '16 at 02:07 PM

Hi Jarrod84,

Have you tried using "Add Child Actor Component"? This may be closer to what you are looking for.

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

Hi, the problem is that Actor Components are not "spawned", they are "added" instead

alt text

alt text

more ▼

answered May 12 '16 at 08:08 PM

avatar image

pelemiq
49 1 5 13

avatar image grisevg Jun 13 '16 at 04:24 PM

This node is only available in an Actor BP, not SceneComponent BP.

avatar image GhostRavenstorm Feb 06 '17 at 10:03 AM

I'm trying to figure this out too. I have existing actor components on an actor that I want to set to another common type of actor component but I have no clue how to do it when the node you expect to use are missing or don't work.

https://answers.unrealengine.com/questions/557339/how-to-set-a-new-instance-of-an-object-to-a-variab.html

(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