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 instantiate UObject in BP?

In C++ you just use NewObject<T>, but how to create instances of UObject from inside Blueprints?

BP has "Spawn Actor From Class" for actors, but what about objects?
Isn't there any way to do that without creating C++ wrap methods for that?

Product Version: UE 4.19
Tags:
more ▼

asked Mar 18 '18 at 10:48 PM in Blueprint Scripting

avatar image

Arty-McLabin
858 19 41 60

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

1 answer: sort voted first

http://api.unrealengine.com/INT/BlueprintAPI/Game/ConstructObjectfromClass/index.html

It's strange you didn't find it yourself yet for a week now :p If you searching nodes, use search in Pallete window (you can find in window menu), you probably would find solution in google too

more ▼

answered Mar 25 '18 at 07:00 PM

avatar image

Shadowriver
35.7k 925 168 1101

avatar image Arty-McLabin Mar 28 '18 at 10:56 AM

Thanks, that's what i needed :]

for some reason that node didn't appear in search until i recompiled the class and restarted the engine. seemed to me it should be there because of "construct" keyword, which doesn't seem fitting for outside of construction script :P

(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