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"

Engine replaces Variables on save

I have 4 classes (all in Blueprints). 1. Ability, which inherits from UActorComponent 2. Power, which inherits from Ability 3. AbilityManager, which inherits from UObject 4. PowerManager, which inherits from AbilityManager

AbilityManager has an array of Ability, called "Abilities" PowerManager adds an array of Power, called "Powers"

The issue happens in PowerManager.

When I drag "Abilities" into a function (from the variables pane), it shows up fine. However, if I copy the reference and paste it, it pastes a reference to "Powers". If I save the class and close the project, and then reopen the project, all references to "Abilities" are replaced with ones to "Powers".

Any help would be appreciated.

I have worked around it by removing "Powers" and just casting each Ability from "Abilities" to Power when I need to use them.

Update: It has now done this with a float as well, When i reopen the project one variable reference is replaced with another in a function.


Product Version: UE 4.13
more ▼

asked Oct 18 '16 at 03:02 AM in Bug Reports

avatar image

16 2 3 7

avatar image Adam Davis STAFF Oct 18 '16 at 01:20 PM

Hi giffen,

In your PowerManager blueprint, do you have a variable saved for the new reference? Without that reference, the blueprint won't know what is contained in the event graph.

avatar image giffen Oct 18 '16 at 01:54 PM

Yes, both "Abilities" and "powers" are class variables, not local variables.

This is what it looked like before the save (look at the variable in the upper left corner "Abilities")

alt text

And after the save, close and reopen project (again, look at the variable in the upper left corner "Abilities" has turned into "Powers"):

alt text

As far as I can tell, in both cases it was in a child class, with a reference to the parent class's variable of the same type as one in the child class. Unreal replaces the reference to the parent class's variable with one that is only in the child class.

before save.png (493.4 kB)
after save.png (504.6 kB)
avatar image Adam Davis STAFF Oct 18 '16 at 02:23 PM
  • Does this occur in a clean, blank project with no additional content or is it limited to one project?

  • What steps can I take to reproduce this error on my end?

  • Do you have any circular references that may be overriding your information?

avatar image giffen Oct 18 '16 at 11:38 PM

I have no idea if it happens in a blank project, this has only happened twice, both times since I moved to 4.13. This is a fairly large, complex project. I did not have the problem in 4.11.

I have no idea what is required to reproduce it. I will note that the two times it happened was with references to inherited variables, and it replaces them with child objects that "look" similar.

No, I do not have any circular references.

avatar image Adam Davis STAFF Oct 19 '16 at 01:35 PM

Do you have a sample project I can look?

avatar image giffen Oct 19 '16 at 04:25 PM


I don't want to post it in this forum. It is a large project and if there is some way I could share it privately, I might be OK with that. I have created workarounds for the problem at this point, and it was more about trying to help others if they saw the same thing. One other point, I believe in both cases, those parts of the project were in place in 4.11. When I create new variables in 4.13 (not carried over from the 4.11 version), the problem does not reoccur.



avatar image Adam Davis STAFF Oct 20 '16 at 03:00 PM

You can private message me the link here.

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

1 answer: sort voted first

Hi giffen,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

more ▼

answered Oct 24 '16 at 05:20 PM

(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