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

Pages: [1]
1
There are no tweens or anything similar.

The Layout consists of:

Buttons (UI2DSprite, UIButton, Box Collider)
Anchored to Widget (UIWidget)
Anchored to Root (UIRoot, UIPanel, Rigidbody)

All anchors are set to OnUpdate.
UIRoot is set to constraint on height.

Could it be that the Sliding comes from NGUI needing several
update cycles to solve the anchors?

2
I mean the repositioning of every anchored UIWidget.
Our UIButtons for example are anchored to the left or right of the UIRoot.
If you start the scene with another resolution than it has been designed with,
the buttons slide to the side until they reach their anchored position.
They shouldn't slider there but just instantly be placed at the anchored position.

3
NGUI 3 Support / Deactivate reposition animation on aspect ratio change
« on: October 16, 2014, 03:09:21 AM »
I'm trying to disable the repositioning animation when the aspect ration changes.
On ratio change the Sprites should be instantly positioned at the right place and not move there
smoothly. Is there any way to deactivate it?

Best regards,
Pascal

4
NGUI 3 Support / Re: Custom shader parameters reset every frame
« on: August 27, 2014, 06:38:25 AM »
Yeah thx I just read it in the other thread, too.
I was a little bit confused because the NGUI documentation wasnt up to date either.
I'll try it out as soon as we are able to update NGUI.

5
NGUI 3 Support / Re: Custom shader parameters reset every frame
« on: August 26, 2014, 04:13:00 AM »
Thx for your fast reply, but I could not find onRender anywhere.
Autocomplete does not show it and even in the documentation of UIWidget
I could not find it. Neither in UIWidget nor in UITexture.
Maybe sth. changed?

6
NGUI 3 Support / Custom shader parameters reset every frame
« on: August 26, 2014, 03:48:24 AM »
Hi,

I try to set 2 colors in my custom shader on a UITexture via script. The shader is nearly identical to the "Unlit - Transparent Color" shader except there are 2 additional
color properties and small changes in the fragment shader to make use of those.
In another thread I read it is recommended to change custom shader parameters via "widget.drawCall.dynamicMaterial".
I tried this but now I got the problem that the set parameters are reset every frame.
Even if I set the colors in Update it seems like every second frame is rendered without colors set.
So how can I persistently set custom shader parameters via script?

Best regards,
Pascal

Pages: [1]