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"

[Feature Request] Name Pin for Spawn Actor From Class Node

Developing through Blueprints there is currently no way, that I could figure out, to set the name of the Actor you are spawning to a custom name. All spawned actors are given a name automatically. Could it be possible to expose a pin that will allow us to give actors we are spawning a specific name? If this feature request exists could you please direct me to it so I can up-vote. Thank you! alt text

Product Version: UE 4.14
more ▼

asked Feb 13 '17 at 11:27 PM in Blueprint Scripting

avatar image

26 1 3

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

1 answer: sort voted first

I think the reason this doesnt exist is to avoid duplicate names, thats why its better to let the engine handle it because it can lead to quite severe issues if left unchecked. If you need a tag or a unique name you can add them immediately after spawn.

more ▼

answered Feb 14 '17 at 12:30 AM

avatar image

1k 37 12 38

avatar image Cbarba Feb 14 '17 at 02:58 PM

I figured as much. Also, to anyone looking to do it through a c++ workaround, I tried it and although I was able to pass the name into the FSpawnparams, the name did not change to what I wanted. So I would say that's a waste of time.

avatar image MonsOlympus Feb 14 '17 at 03:01 PM

Yeah I think the name might be used during the Garbage Collection so if you have an object with a duplicate name it could end up causing a memory leak. Im not really an expert on the topic though but Ive heard its just generally bad form with UE to have duplicate names.

(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