1
NGUI 3 Support / Re: How do I keep a UISprite from going off-screen?
« on: June 13, 2014, 02:50:45 AM »
Thanks, that's what I'll do.
However I've encountered what looks like a bug: the method I'm using (the code from my previous post) works fine when the game panel is not maximized. But if I start the game with the "Maximize on Play" option then it doesn't work: the icon's position on screen is NOT clamped to the edges of the screen. And so it disappears if the camera doesn't look at the character.
I don't understand why it doesn't work when the game starts in full-screen mode, but it does if the game window is in a multi-panel layout. Do you have any idea what could cause this issue?
However I've encountered what looks like a bug: the method I'm using (the code from my previous post) works fine when the game panel is not maximized. But if I start the game with the "Maximize on Play" option then it doesn't work: the icon's position on screen is NOT clamped to the edges of the screen. And so it disappears if the camera doesn't look at the character.
I don't understand why it doesn't work when the game starts in full-screen mode, but it does if the game window is in a multi-panel layout. Do you have any idea what could cause this issue?