1
Misc Archive / Re: [WIP] UI components "pack" -- Scrollable PopupList available for download
« on: August 17, 2015, 06:58:56 AM »Unfortunately getting the following error:
Assets/NGUI/Scripts/UI/UIScrollablePopupList.cs(772,45): error CS0029: Cannot implicitly convert type `void' to `UnityEngine.BoxCollider'
Please if anyone can help it would be much appreciated.
Probably something that changed in NGUI after the "scrollable popup list" was made.
Replace the offending line with this snippet taken from UIPopupList.cs:
- NGUITools.AddWidgetCollider(lbl.gameObject);
- lbl.autoResizeBoxCollider = false;
- BoxCollider bc = lbl.GetComponent<BoxCollider>();
edit: there are a number of other issues with this component - hardly surprising as it's not being actively supported. I was initially going to fix it up for the latest NGUI, but turns out there are more issues than I have time for. Still, the above is correct in so far as it allows the thing to compile.

in the editor, and set the wrapmode to repeat (which is exactly what I do above, in code). Then manipulate the UVRect either in code or editor as you prefer. Simple - and not really much of an NGUI question at all, but I leave the answer anyway, in case someone suffering from too little sleep (like yours truly) runs into the same thing.