- Home /
Question by
awmcclain · Feb 16, 2018 at 08:38 PM ·
canvasrecttransform
Click targets for UI elements ignore Pos Z?
We're doing a pseudo 3D UI using a worldspace Canvas and offsetting some UI elements in space by giving them a negative Pos Z value so they 'float' toward the camera.
All of this renders beautifully and expectedly, except for the click targets of buttons. It seems that the click targets are ignoring the Pos Z value of the button -- you need to click where the button would be if its Pos Z were 0, not where it's rendering.
Is there a way to get around this? Is this a bug?
Comment
Your answer
Follow this Question
Related Questions
GetComponent() Problem with getting value. 1 Answer
UI Scrollbar in the wrong location 0 Answers
Snap UI Text inside canvas 1 Answer