1
NGUI 3 Support / Re: Assigning material to atlas
« on: July 30, 2015, 09:55:28 PM »
Sorry in advance, my C# is a bit rusty. I suppose I would create an instance of UIDrawCall.OnRender and set it to onRender. The delegate takes a Material, but I don't know what I'm supposed to do with the material in the method.
- someSprite.onRender = cb;
- void CbMethod(Material mat)
- {
- }
