Hi Guys,
How can I get the size of actual canvas either in events or script?
When you run debug mode, under System it has a variable "Canvas Size" showing something like a vector2 - 889 x 500 for example.
This value changes as you resize the navigator window so a reference type would be preferred.
All I can find in the events is the Viewport sizes and some conversion methods.
What I'm trying to do is calculate if the mouse is near the edge of the canvas element,
something like
if (mouse.AbsoluteX >= (canvas.width -5) {
//then I know the mouse near the right edge
}
and so on.