World space canvas rect not masking

I have a scroll rect that masks correctly in the editor scene view but fails to mask in the game view on a world space canvas. I’m calling SetParent(parent.transform, false) which I know is required. Any ideas?

Editor view:

Game view:

Scroll rect settings:

So are you adding new items programatically or are they present in the scene already.
Tried a few things and couldn’t replicate your issue.

So can you share a bit more light / code on how you are adding to the layout?

Sorry I resolved it. I moved it to a blank project to be able to submit a bug report and couldn’t duplicate it and it turns out an Asset was affecting it somehow but that’s something I can run down with the author.

1 Like

If you find the root cause, be sure to share.
Thanks for updating the thread.