Why does UpdateInstanceTransform() of GroupedSpriteComponent crash?
I'm currently having a UPaperGroupedSpriteComponent rendering some sprites for me. I added some instances via
Now I want to change those instances' transform. But the
always throws an exception, no matter what I do. Can someone please help, I really don't know what I'm doing wrong :/ Thanks!
hey Jin, thank you very much for your help! I really appreciate it that you tried to help me!
After endless digging through the engine code I think I kinda solved the problem and apparently you're right; the problem is indeed that the Sprite I'm using has no BodySetup - so one has to turn on 3D Collision for the Sprite one is using in the Editor. OMG. This issue has really got me busy for days. I really have to say that Unreal really sucks regarding documentation and being buggy! Thanks again for the help though!
But it quite clearly is a bug, isn't it? I mean, you should be able to change transforms even though the Sprite has no collision enabled, right?
The AddInstanceWithMaterial() function returns an index. Make sure that is good. If it is then the only possibilities I can think of are:
I'd debug the game and make sure the pointer address is the same in both spots. Sounds like you may have created a second component and overwrote the old pointer. But if not, keep the info coming and we'll figure it out.
answered Nov 26 '17 at 04:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here