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 - rvm8i

Pages: [1]
1
NGUI 3 Support / Re: UITexture Materials
« on: February 18, 2015, 07:11:51 PM »
Thanks, I got it working! I ended up cloning the material using the constructor that creates a duplicate, then assigning that to be the UITexture's material. The tip about assigning a delegate to onRender was really helpful too :)

Cheers,

rvmi8

2
NGUI 3 Support / UITexture Materials
« on: February 17, 2015, 10:25:01 PM »
Hi everyone,

I'm trying to change a property of a UITexture's material (UITexture instantiated from a prefab) using GetComponent<UITexture>().drawCall.dynamicMaterial.SetFloat(). When I have only one instance, it behaves exactly as I'd expect. However, when I instantiate more, it seems like all the instances start using the same material. I remember reading somewhere that each UITexture comes with its own internal material - I assume I'm not accessing this one? If that's the case, how would I get each instance of my prefab to change the properties of its own material?

Thanks!

rvm8i

3
NGUI 3 Support / UIKeyNavigation not working with controller
« on: February 09, 2015, 11:14:24 PM »
Hi,

I'm trying to get the UIKeyNavigation script to work with a controller. When I run the example script for controller and keyboard input for this, it doesn't respond to input from either of the analogue sticks or the directional pad; only keyboard input causes the selection to change. I put Debug.Log statements inside the OnKey method to see if it's processing the input properly, but it appears as though only the A and B buttons have any effect (A selected the button as if I had pressed Enter, but didn't print, while B printed 'Escape'). I've tried both an Xbox 360 controller and an Xbox One controller, with exactly the same result. I even reset my project's input settings to the default settings, and it still doesn't work.

I'm really stumped by this issue... Any help would be much appreciated :)

Thanks,

rvm8i

Pages: [1]