ElementDragHelper

Hey folks,

I’m trying to implement a simple UI slider, and it’s pretty dang hard in PlayCanvas! The issue is screen scaling - I’m struggling to get the ‘scale’ value which describes how the actual screen resolution differs from the reference resolution, if blendmode is set to ‘blend’… Is there such a simple property someplace? I’m reverse engineering at the moment which feels a bit silly.

Also on my travels I discovered ElementDragHelper (https://github.com/playcanvas/engine/blob/master/src/framework/components/element/element-drag-helper.js) which I’m going to have a play with, though it seems to be undocumented - is it a safe class to use?