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"

Can I Set A Variable From Other Class Straight from Actor Object Reference

Hello, I am trying to change a variable from the "Actor In" out node which is an Actor Object Reference. I am trying to avoid casting to every specific blueprint in which I want to change the variable. Every blueprint that will come through here will always have this variable, but because I don't ever tell it what class I am trying to access the variable from. It won't let me change it. alt text

This is how I am spawning the class in which I would like to change the variable on. I am getting the name of an Instanced Foliage Item's Static Mesh and then using a Data Table to extract the class. So, the question is: How can I change a variable that is in the class that is selected by the process above. There are many different classes that can be selected, but they will all have this variable. alt text As you can see here, I am able to set simulate physics on a static mesh that is in the blueprint. Why can't I change a variable from here also? Thank you!

Product Version: UE 4.19
gettingclass.png (51.5 kB)
simulate.png (53.7 kB)
more ▼

asked Jun 22 '18 at 06:54 PM in Blueprint Scripting

avatar image

3 1 1

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

1 answer: sort voted first

The static mesh component is the child of the blueprint you have variables in. You would need to cast to the class it self.

![alt text][1]

131.png (205.9 kB)
131.png (205.9 kB)
more ▼

answered Jun 22 '18 at 07:47 PM

avatar image

210 4 4 6

avatar image CamTheMan55 Jun 26 '18 at 05:18 PM

Thank you for your help.

(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