Support => NGUI 3 Support => Topic started by: beyonddoor on November 10, 2014, 04:48:43 AM
Title: UIRect failed to anchor self properly when multiple cameras are used.
Post by: beyonddoor on November 10, 2014, 04:48:43 AM
Hi, all! In my game, each UI frame is attached a camera for convenience , so here comes the problem, when an UIRect is enabled, ResetAnchors is called in its Update, in UIRect.cs.
Actually, mMyCam is assigned to another frame's camera, thus the rect is totally wrong. Please help me to solve it. ps, my currently used NGUI is 3.4.9.
Title: Re: UIRect failed to anchor self properly when multiple cameras are used.
Post by: ArenMook on November 10, 2014, 08:45:32 PM
You need to make sure that only one camera is able to draw each layer. You have multiple cameras being able to draw the same layer, which is a bug on your part.