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

Pages: [1]
NGUI 3 Support / Re: Radial scrollview
« on: July 19, 2015, 10:10:03 PM »
It was a quick solution for a demo, once I have a solution that nicely integrates with NGUI, I will share it.

Is this available now?

using NGUI 3.6.1

when you change Extras->Switch to 2D Colliders
the slider value don't change by dragging the thumb, and neither the thumb move.
It works fine with 3D UI, but why it with 2D UI..

(+) sliding the slider by touch&drag somewhere on top where thumb is not placed, it works.

NGUI 3 Support / Problem with UIPanel(SoftClip) on ScrollView
« on: May 13, 2015, 02:07:27 AM »
I'm using NGUI 3.6.1 and Unity 4.5.1

I'm trying to make a ScrollView with Drag&Drop Item's in it, same as NGUI Example 11.
But When I make this in UI 2D (with 2D colliders), it has a problem.
You can get the same problem by changing Example 11 to 2D Colliders using Extra->Switch to 2D Colliders

The problem is that you can scroll the scroll view, but you can't drag&drop items in the scroll view.
And I spent tremendous time trying to figure this out and found this weird behaviors.

1. This problem only happens when I set ScollView's UIPanel Clipping option on SoftClip. It works fine on None or Constrain But Don't Clip.

2. If I place the Container(parent of the scroll view) at (0, 0, 0), it works fine with SoftClip, but when I move it to (+101, 0, 0), or (-101, 0, 0) it doesn't work. The number '101' is (half the size of ScrollView's UIPanel Size.x)=100 + 1
When I extend the UIPanel Size.x to 400. It's works untill I move the Container over (201, 0, 0) or (-201, 0, 0)

This is all what I found out atm.
If the items were never draggable, I wouldn't post this issue, but it works in someways and I hope this is the sign that this could be fixed.

You can use it as sliced and just slice it little before the round corners on the sides.

How can you slice like that?

EDIT: I think I found it, UISprite -> Sprite -> Edit -> Border
Give value to border left and right? Think it works
Thanks :) @Razhagal

Edit: Easy fix. Global replace UICamera.lastHit.point with UICamera.lastWorldPosition.

Problem solved !

UIScrollView - line 701
mLastPos = UICamera.lastHit.point; -> mLastPos = UICamera.lastWorldPosition;

by doing this,  the jump problem is fixed.
Well, but I fixed it and tested it a moment ago so.. there could be some problems
but no problem atm.

I'm getting the same problem.

I changed my Scroll View from 3D to 2D, and it jumps now.
It works fine if I turn it back into 3D.

Using Unity 4.5.1 , using NGUI 3.6.1

Your image need to be with rounded corner as well.

In that way, I have to set the UISprite type to simple, and this causes the bar to strech when value changes.
So the rounded corner shape changes, and it looks weird this way

I want to make a progress bar like this one (image attached)
I really searched a lot but.. I just couldn't find the way

I think it's not possible with NGUI.
Maybe a way to do it some other way? Or is there a way to do it with NGUI ?

Pages: [1]