Welcome,
Guest
. Please
login
or
register
.
May 10, 2026, 02:28:37 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton does not function after rescaling
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIButton does not function after rescaling (Read 5534 times)
captain_geek
Guest
UIButton does not function after rescaling
«
on:
April 19, 2013, 05:49:24 PM »
Since the UI is created so small I resized it so that I could see the rest of the game without having to shrink everything down to a micro-scale.
But now the UIButton that was working before is no longer registering the Hover or OnClick events ...
I resized the UIAnchor and then the UIPanel underneath that, the button is visible at the original scale that I started off with.
Any hints? What should I check next?
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: UIButton does not function after rescaling
«
Reply #1 on:
April 19, 2013, 08:52:44 PM »
Your game should be in a different camera with an entirely different scale - there's no need to have the game be drawn by the UI camera.
Keep the UI at the small scale and have your game be the scale you want it to be with a different camera. Just set the UIcamera's depth to be higher than the game camera, so that it's drawn on top of it.
Logged
laurentl
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 188
Re: UIButton does not function after rescaling
«
Reply #2 on:
April 19, 2013, 09:59:36 PM »
Yes and I'll add that the standard NGUI setup is good because scale is not an issue, I'd stick to it. But maybe you are trying to create 3D interface ?
Logged
McDROID!
http://www.mcdroidgame.com/
captain_geek
Guest
Re: UIButton does not function after rescaling
«
Reply #3 on:
April 20, 2013, 05:53:48 PM »
laurenti: Just trying to do a 2D interface on top of a 3D game ...
Nicki: thanks, I'll look into that, not sure if I understand at first reading but I'm going to wrap my head around it with some help and apply that ...
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton does not function after rescaling