Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MrNoobin on September 06, 2015, 10:59:42 PM

Title: Possible bug 3.9.2
Post by: MrNoobin on September 06, 2015, 10:59:42 PM
Hello,

Wanted to share this and what I did to fix it for me.

kept getting an error in UIDrawCall.cs at line 260 where panel was null.

This would happen whenever I would select a new object inside the hierarchy. (Did not matter what I was clicking)

This could be caused by something I am doing wrong, so here is my current Hierarchy setup

UI Root>Camera>Panel>Sprite & Labels

I decided to just throw a tag on the panel and added the following before line 260

if (panel == null) panel = GameObject.FindGameObjectWithTag("Panel").GetComponent<UIPanel>();

Hope this ends up being helpful.

Thanks =)