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"

Restrictions with attaching components at runtime

Hello! I was playing with components some time ago and noticed that there's a blueprint function that allows you to attach components at runtime (Palette > Add Component) but I can't help to notice that it is not possible to place an Add Component blueprint node on any blueprint that is not derived from an actor class.

  1. To be specific, the node can be placed on: Actors, Pawns, Controllers, HUDs, GameModes, PlayerStates (all of which have a scene root).

  2. It is not possible to place an Add Component node in: Actor Components, Scene Components, UObjects.

I find it weird because it is entirely possible to call the function from inside an actor blueprint and have any it run on any other actor by specifying the target, but for everything else, like say scene components, trying to drag the node from the palette results in "Cannot place this node in this type of graph" and the current documentation doesn't mention this anywhere

An obvious work around is to use actors to handle attaching components at runtime. This is likely not a bug but a engine design choice, although it still baffles me that it works that way, so I'll leave this post here just in case anyone finds it useful.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 17 '15 at 06:30 PM in Blueprint Scripting

avatar image

GoodOldMalk
1 2 4

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

0 answers: sort voted first
Be the first one to answer this question
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