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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Actor reference from child actor component

Hey folks,

Is it possible to get an actor(object) reference from a child actor component?

i.e can I get an instance of a child actor to allow for me to call functions on it? I can't seem to find a way to get the instance of the child actor from the child actor component variable.

Cheers

Product Version: UE 4.8
Tags:
more ▼

asked Jul 22 '15 at 03:35 AM in Blueprint Scripting

avatar image

MugenCity
182 12 18 104

avatar image vanditKing Feb 02 '16 at 01:31 AM

this is my usage.

[1]: /storage/temp/76915-차일드액터+구하기.png

avatar image Zodiac20 Dec 31 '18 at 07:30 PM

Hi is there a way to do this the other way around? So from child actor I want to access variables from parent actor.

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

2 answers: sort voted first

Problem solved.

With the parent blueprint, get the child variable, get the child actor from the child variable, then cast to the desired class.

more ▼

answered Jul 22 '15 at 03:57 AM

avatar image

MugenCity
182 12 18 104

avatar image RAVaught Jul 22 '15 at 04:10 AM

Yeah. It is a bit of a contortionist act, currently. Hopefully they will correct that soon. If you are only picking through a very select few, you can also use tags to specify which of the child actors of a given type you want.

avatar image DatapawWolf Aug 16 '15 at 02:58 AM

Just started running to this. What a hassle. Ugh.

avatar image -Ross Nov 23 '15 at 01:36 PM

To me this is worded a bit strangely, so for anyone else who didn't get it at first read: Drop a reference to the Child Actor Component into your graph, then drag off from that and "get child actor". That gives you an actor reference that you can use as-is or cast to something more specific. It's as easy as it possibly can be.

alt text

avatar image KelDG Nov 06 '16 at 04:51 PM

Thanks for this I have been banging my head against a wall and making loads of round about ways to get the actor references, this makes my life lots easier :D

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

yes it looks weird. looks like onion lol. but problem solved! thx a lot!!!

more ▼

answered Feb 16 '16 at 12:33 PM

avatar image

vanditKing
30 4 10 16

(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