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 do I get the Outer Object in Blueprints?

I made a new Blueprint class that extends Object. When I create a new instance of this class using the Construct Object from Class node:

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Game/ConstructObjectfromClass/index.html

It requires me to pass a parameter called "Outer" as an Object Reference.

How do I reference which Object I passed as the "Outer" parameter later inside my new Blueprint class?

Product Version: UE 4.10
Tags:
more ▼

asked Jan 14 '16 at 07:42 PM in Blueprint Scripting

avatar image

vib
70 9 12 17

avatar image BigJohn83 Feb 19 '19 at 12:12 AM

Did you ever find the answer to this?

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

3 answers: sort voted first

Use "self" node.

more ▼

answered Jun 15 '16 at 08:05 PM

avatar image

ttvd
333 20 25 34

avatar image tympanix Oct 21 '18 at 06:19 PM

You misunderstood. That is not what is being asked.

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

I beleive this is a misspelling on epics part. I think this is suppose to say “owner” not outer. So you would access this variable by the function “get owner” inside the constructed object.

more ▼

answered Oct 21 '18 at 08:39 PM

avatar image

Steve SybrSyn
1.5k 4 5 9

avatar image tympanix Oct 21 '18 at 11:53 PM

I would think the choice of words are intentional not to clash with the owner property of the AActor class. Remember, OP is talking about UObject not AActor. And as per the documentation the UObject class has neither a GetOwner nor a GetOuter function.

avatar image Steve SybrSyn Oct 22 '18 at 04:28 AM

Ahh yes, you are right.. I was confused because the description of the pin reads "the owner of the constructed object". I cannot seem to find a way to access this variable either.

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

All UObjects have a GetOwner(), it just lives in their base class, but is still callable by any child classes.

https://api.unrealengine.com/INT/API/Runtime/CoreUObject/UObject/UObjectBase/index.html

more ▼

answered Apr 07 '19 at 09:21 PM

avatar image

louissica
1

(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