Draggable UI objects

I’ve implemented a Drag and DragEnd on a empty object with an image component. When i drag the objects they move and I can see them in the Scene tab but they become invisible in the game tab.

The object is in the UI it has a canvas parent.

Most likely the z value of the object is being set behind the camera, hence why the Scene view will render it, but the physical camera won’t. To fix this you would just need to modify your script to either not change the Z value, or set it to somewhere in the cameras view.