Hello,
I’d like to report a bug with the InstancedStruct as they’re not working as a local variable in a function. They do however work if I add a variable in the members of the class holding the function.
Cheers,
Hello,
I’d like to report a bug with the InstancedStruct as they’re not working as a local variable in a function. They do however work if I add a variable in the members of the class holding the function.
Cheers,
Steps to Reproduce
Add an instanced struct as a local variable in a function
Try getting the scriptstructtype (you might need to make a blueprint function library to expose that)
Notice that the scriptstructtype is None
Hello [mention removed]
Thank you for reaching out and bringing this issue to our attention.
I might have been able to reproduce the issue you described, but I’m not sure, so I was wondering if you could check my repro project and confirm I’m on the right track?
Let me know.
All the best,
[mention removed]
Yes perfect, that’s exactly it!
Thanks a lot for the screenshots
Sadly I can’t check it at work as I don’t have a vanila unreal setting to test it but looking at the code only, it is the kind of method we use
Could I ask you to do a screenshot of the blueprint script in which you use it to validate it?
Hello [mention removed]
I’ve created a BP_Test and added a MyFunction function that prints the return from GetScriptStructType:
[Image Removed]To check that it works as a class variable, I’ve also added a similar print to the BeginPlay:
[Image Removed]I’ve set both InstancedStructTypes to AimTarget:
[Image Removed]I’ve instanced the BP in the scene, and on Play-In-Editor I get this print:
[Image Removed]Is this similar to your setup?
All the best,
[mention removed]
Hello [mention removed]
Thank you again for reaching out and reporting this issue.
I’ve made a JIRA report to be added to the Unreal issue tracker website (https://issues.unrealengine.com).
Epic will decide if the issue will be made publicly accessible, and the whole process can take a few days, so keep that in mind.
If/once it is made publicly available, you will be able to track the resolution by checking this link:
I’ll close the case, but feel free to reply if you have anything else to add.
All the best,
[mention removed]