Why is changing one variable array chaning another? Need exorcist?

Hellwalker

New member
Hello,
Something very strange is happening with my custom action. When I change string array of one variable, a string array inside another variable is changing in Behavior Designer inspector.
Here is video showing the problem:

Image with variable classes:
 
Does it do that with any other tasks? My one guess is that maybe somehow your constructor for the shared variables within the task is creating problems.
 
I just tried a similar setup but wasn't able to reproduce the issue. If you use a different shared variable type does it work correctly?
 
Hey, Sorry for bringing this back. I didn't have time till now to work on this.
The issue I discovered is connected to Variable names.
When I renamed Texts into NotificationTexts in my action script. The issue was resolved. Maybe this gives a clue on what could be wrong?

So, in my NotificationData variable type I had string list named Texts, and in my custom action script I had similarly named string list variable. And this was causing error in video.
 
Unfortunately I'm still not sure what the cause is. Having a variable named Texts shouldn't affect anything. Are you able to tell me how to reproduce it in a fresh project?
 
Top