Download

Position of instanced meshes in UE 4.22

Hello guys, after migration from 4.21 to 4.22 the simple material function for culling effect stopped working. I’m pretty sure it should be something with new feature of autoinstancing meshes in 4.22. The Actor Position is not returning correct value now since the meshes are instanced now. As I’ve found it should be fixed with using Object Position instead of Actor position however I still can’t find the working solution.

This is the function:
Imgur

It is connected to “World position offset” node in material.

I’ve also tried other solutions from this thread but still with no luck:
https://answers.unrealengine.com/que…al-editor.html

I would be happy for any help!