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 get/set Actor BP Variable within another Actor BP?

Hello UE community, I have a problem in regards to variables and actor BPs This seems like something simple that I just cannot figure out...

I have one actor BP named "Server Rack", with a variable name "timeline".

alt text

Within a separate actor BP named "Server Rack Row" I have this actor as a component.

alt text

Within the detail of this "actor component" I can see the variable "timeline".

alt text

However I cannot access this timeline variable within the event graph

alt text

The closest I can get to a solution is getting the general "get timeline" from "Server Rack" but this is not compatible with the scene component.

alt text

Any solutions to this would be appreciated or alternate approaches that would achieve the same effect ie creating a Variable in a different way that can be called and adjusted from multiple BPs would be great. I just can't figure out what I'm missing here. Thanks... -Chris

Product Version: UE 4.15
doc-img-01.jpg (24.0 kB)
doc-img-02.jpg (14.2 kB)
doc-img-03.jpg (42.8 kB)
doc-img-04.jpg (28.6 kB)
doc-img-05.jpg (39.0 kB)
more ▼

asked Aug 24 '18 at 04:45 PM in Blueprint Scripting

avatar image

5 1 2 5

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

1 answer: sort voted first

Only components can be components of an actor, when you place actor as component it is enveloped by Child Actor Component which makes containing actor behave like component by controlling it. So you getting refrence of Child Actor Componet not actor it self, even tooltip hint you that.

You need to get ChildActor variable from child actor component first to access your varable, best is just to set actor reference to some variable during BeginPlay.

more ▼

answered Aug 25 '18 at 11:52 PM

avatar image

37.8k 937 172 1123

(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