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 access the exposed variables of a child actor blueprint?

So what I've done is created a sliding door class blueprint that has the ability to be locked. This door bp is being spawned in the construction script of another blueprint in order to create a room. Unfortunately I can no longer access the locked variable when it's a child actor component. Is there a simple way to do this? I've been looking into spawning an actor from a class, but that can only be used in the event graph. I feel like I'm approaching this from the wrong direction due to my lack of experience with blueprints.

Also as a side note, I've noticed that child actor blueprint components seem to act really buggy. They duplicate themselves when playing in the editor, sometimes moving to the origin of the world space. They don't seem act this way when being played from launch, but occasionally a blueprint that worked fine in PIE will cease to work here.

It seems to me that I'm using this component incorrectly, does anyone have some suggestions? Thanks in advance!

Product Version: Not Selected
Tags:
more ▼

asked May 11 '14 at 04:01 AM in Blueprint Scripting

avatar image

Koya Oneda
56 3 3 7

avatar image moadib Jun 03 '14 at 01:37 PM

Also as a side note, I've noticed that child actor blueprint components seem to act really buggy. They duplicate themselves when playing in the editor, sometimes moving to the origin of the world space. They don't seem act this way when being played from launch, but occasionally a blueprint that worked fine in PIE will cease to work here.

I can confirm this behaviour

Interested in the answer too.

avatar image wolfadex Sep 05 '14 at 12:18 AM

I'm also curious about accessing the child Blueprint's exposed variables. In my parent Blueprint I have added 2 ChildActorComponents. I've tried everything I can think of but am still unable to access the child Blueprint's exposed variables.

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

2 answers: sort voted first

I know this is an old thing but I was cracking my skull on trying to do this for a prototype I was working on.

Your child actor needs to be extracted this way:

alt text

Just to elaborate a wee bit more on my scenario.

I have a wall with a child actor that denotes which parts of it can be used as cover. The child actor is named CoverPoint_Actor with a property called IsCoverPoint. So how I went about this was as follows:

  1. Cast the actor from the ray trace to see if it is the appropriate actor. If it is proceed.

  2. Get the child actor that is of interest. In my case is Cover Point 1.

  3. Get the Child Actor (sounds redundant but it works).

  4. Cast it to the appropriate blueprint.

  5. Now you can access the property you want.

Note a few weird things that may throw you off.

  1. The option of casting the child actor from the contextual menu is not there for some odd reason. The work around would be, at least in my case, drag out a wire from the actor that was returned from the trace, select the casting option you want for your child actor. Snip it and then you will be able to use it to actually cast your child actor.

Hope this helps. Seriously this silly behavior really threw me off. Hope this helps somebody down the track.

coverpoint.png (155.3 kB)
more ▼

answered Nov 08 '14 at 04:02 PM

avatar image

benjamin-wss
150 9 8 17

avatar image ivanrosadev Sep 10 '15 at 07:41 PM

Thank you! I was having the same problem! Oh my god, I wish Epic stop developing new "features" and start polish the engine, there are too many things half-developed.

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

THANK YOU SO MUCH!

You are beyond awesome for posting this!!

more ▼

answered May 17 '17 at 07:08 AM

avatar image

r4ptur3
31 2 3 6

(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