Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lbddk

Pages: [1]
1
NGUI 3 Support / About NGUI UI2DSprite change shader's param
« on: April 01, 2015, 12:44:12 AM »
i made a cum shader for button with ui2dSprite,and i need to change shader's param value.then i found it not work.
i found that ngui use dMat instead of the normal one which we can change. so if i use ui2dSprite.material can only get just like a model not object. so , if i use ui2dSprite.material.setFloat("test",1) that this will not work.

if there is some one know about how to let ui2dSprite.material.setFloat work,please help me and give me some answer thank you .

Pages: [1]