But this is really bad way to work. What if I need to change only one member in many places? And if I add one more variable to this stuct, I have to connect it’s value everywhere I use such logic.
P.S. I chose 4.9 Preview, because it is the latest version. 4.8, 4.7 and other ones are also have this issue.
This bug is marked as fixed in 4.12. While I cannot guarantee that it will make it into the final release build, I would keep an eye on the release notes on our [Announcements and Releases][1] section of the forums.
The issue is still being investigated by our developers with a targeted 4.16 fix version. Keep in mind that this is subject to change at any point as priorities shift and new crashes and blockers are discovered.
The problem is that set member in struct requires that a reference of a struct is feed in. So just passing a copy of that struct won’t do the job.
There is a get node for arrays called “get by ref” which returns a reference (shown as shape instead of the circle on the get node). Or more elegantly put here is how it should look:
Note that you cannot use the foreachloop node since it returns copy of any array you feed into it.