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"

[4.8.2] BP: Same-named variables of other classes listed as own references

Hi there,

I am currently moving some variables from GameMode to GameState. As cut & paste isn't possible for some reason, If have to recreate each and every one in the other class first and then manually recreate the references.

If I now would remove the variable in the old class, the editor would just kill all getter/setter-nodes (why aren't the adjacent execution lines not automatically reconnected when deleting a node?)

When I now click on the old variable and hit "Find references", the editor still lists all uses of the variable as before, even if its from another target.

alt text

The expected behaivor would be, that it only lists the uses of this variable (which isn't in fact used anymore) and not just all getter/setter-nodes referencing a variable with the same name from other classes.

Product Version: UE 4.8
Tags:
more ▼

asked Aug 11 '15 at 02:27 PM in Bug Reports

avatar image

spyro
1.7k 106 117 232

avatar image Adam Davis STAFF Aug 12 '15 at 06:00 PM

Hi spyro,

Does this occur in a clean, blank project with no additional content or is it limited to this project? Do you have a set of reproduction steps I can follow to reproduce this on my end?

avatar image spyro Aug 13 '15 at 03:44 PM

Ok.

  • Create a new project

  • Create a new Actor-Blueprint Blueprint_B with a boolean named myVar and place in the level

  • In the content browser, duplicate Blueprint_B and name the copy Blueprint_A

  • Open Blueprint_A and create this script

alt text

(Text representation)

  • Now delete the red-marked node (the reference to Blueprint_A's myVar) and recompile. Now this variable isn't in use anymore.

  • Right click on myVar in the variables list and select 'Find References...'

The 'Find Results'-Tab returns a wrong result that suggests that this variable is used where the graphs references a variable only with the same name of another class. But in fact, Blueprint_A.myVar isn't referenced anymore in this graph.

alt text

If you attempt to delete the variable, the editor also tells you that it is still in use (which is wrong):

alt text

spyro

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

2 answers: sort voted first

Hi spyro,

I was able to reproduce this and have entered a bug report, UE-20020, to be assessed by the development staff.

more ▼

answered Aug 14 '15 at 03:18 PM

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

Thank you.

more ▼

answered Aug 16 '15 at 01:04 PM

avatar image

spyro
1.7k 106 117 232

(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