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.


Topics - newDev

Pages: [1]
1
NGUI 3 Support / Shader for sprites in UIAtlas
« on: April 14, 2014, 02:59:38 AM »
Hi! i'm trying to effect sprites in UIAtlas by shader to create disabled state for UI. I see, that default shader for UIAtlas can change color and alpha of separate sprite in atlas, as well as it's position without effecting the whole atlas. I want to change sprites saturation in the same way, so i need to pass some parametrs in the custom shader. But when I sat shaders property from the script attached to the UISprite the changes apply to the whole atlas, not just for that separate sprite. Can you tell me, what am I doing wrone and is there any way to solve this problem?

I know, that the most simple solution is to use UITexture, not UISprite. But I'd like my texture sprites to stay in UIAtlas.

Thanks!

2
NGUI 3 Support / Overlapping box colliders
« on: March 05, 2014, 06:48:41 AM »
Hi! I have a Scrollview with a widget (let's call it Container) in it. This widget has a number of children with BoxColliders. The problem is that BoxCollider of the Container overlap children BoxColiders. So the ScrollView can be dragged, but it's children elements can't be clicked. The situation is opposite, if i set children elements Depth bigger then Containets one. Is there a way to prevent it?

There was an alike topic http://www.tasharen.com/forum/index.php?topic=4445.0 where you said that there would be added a functionality to determine a list of widgets hit underneath. Tell me please, if it was added and how can i use it to solve my problem?

Thanks!

Pages: [1]