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

Pages: [1] 2
1
Wow that was so simple and many thanks :D

2
Well there's a partial solution like we count the number of items which fit vertically and enable the scroll when item count exceeds max number,
but this is not the optimal solution since it will differ a bit from device to another, also max number will change every time we use this tecnique since
each item (row) will have a different vertical height.

so I am searching for a dynamic method, to tell me that the items do not fit without a scroll.

Thanks.

3
Hello,

I have a scroll view which start with 0 items, and the user adds throughout the game, meaning I do not have  a fix number of items
for my scroll view.

I am facing a problem making the scroll view stop its scrolling property when not needed, ie when my vertical list fits 5 items and I only
have 2 or 3 items, no need to scroll them and let them be sorted from top to down until they dont fit and scrolling will be enabled.

Is this doable? and if yes any hint or link or tutorial please.

Thanks,
moghes

4
NGUI 3 Support / Re: How to set scroll view clipping dynamically?
« on: June 02, 2014, 04:53:16 AM »
:D

Found the solution :)

scrollView.GetComponent<UIPanel> ().baseClipRegion = new Vector4 (0, 0, Screen.width * 0.82f , Screen.height * 0.75f);

Thanks anyways :)

5
NGUI 3 Support / Re: How to set scroll view clipping dynamically?
« on: June 02, 2014, 04:41:00 AM »
Thx Aren,

I want to access the clip size, not the clip softness.

scrollView.GetComponent<UIPanel> ()

as I press the dot, I can find clipOffset and clipSoftness, but there's not variable to set the clip size.

In my case , I want it to be 950 on Ipad, and 1050 on sasumng note 10.1 ..
I must be able to do something like  scrollView.GetComponent<UIPanel> ().clipsize = new Vector2 (Screen.width * 0.88f , screen.height * 0.4f) ;

please help :)

6
NGUI 3 Support / How to set scroll view clipping dynamically?
« on: May 15, 2014, 09:40:48 AM »
Hello,

I have a scroll view where the clipping (soft clip) is different on every device depending on the resolution.
I tried to access the value via script, but it seems its never reachable.

Any hints concerning this issue?

Thanks.

7
I just updated to the latest, and still I have the UIButton disabling itself.

However I will follow the 40 minute tutorial "NGUI 3.0.7 Tutorial" where you explain scroll views, maybe I have a conflict due to the copy paste.

Thanks :)

8
NGUI 3 Support / Re: Limited support January 9th to 16th
« on: January 14, 2014, 11:24:55 AM »
Wish u didn't have the laptop with you ;(

feeling guilty now for disturbing your vacation.

Thanks to the other guys, I got several and quick replies the past 2 days.

You have grown a great community :D

enjoy :D

9
Hello,

I copied the "UI Root (2D)" from the scroll view examples scene, and pasted in my scene.
Did change the items, removed unnecessary labels/sprites and added UIButton component for each item.

After I hit run, I could hit the buttons(items) and then I realized in the Hierarchy that the UIButton component was disabled, did enable it manually and everything ran fluently and as I planned.

However there are ways to enable them back as I hit Play, but can you tell me what was happening ?

Or from start I should not copy paste the one in the examples and form my own scroll view?


10
NGUI 3 Support / Re: Update NGUI in a project worked with NGUI (older)
« on: January 14, 2014, 10:58:14 AM »
Great thanks to all :D

As the first time I updated without deleting the "older" NGUI folder.. it got messed up.

I opened the back up project and did as you guys told..
no errors and no extra work to be done, till now everything working perfectly.
It was simpler than I imagined.


11
NGUI 3 Support / Update NGUI in a project worked with NGUI (older)
« on: January 14, 2014, 05:41:23 AM »
Hello,

I have a project where I have started working with NGUI 3.0.6 , and not sure if I am able to switch to latest version and not
loose my work done with 3.0.6.

since I have a backup of my project, I clicked on update in the Asset Store and imported, now I see two readme files (old and new),
and can't figure out what version I am using or how did Unity handled that.

Maybe I have to continue my project with the version I started with.

Please can someone clarify me this point.

Thanks :)
moghes

12
NGUI 3 Support / 3.0.6 scroll view tutorial
« on: January 13, 2014, 08:44:29 AM »
Hello,

I see much change for creating a scroll view with 3.0.6 and earlier versions.
For example couldn't find the script "Draggable Panel" which we used to attach to the parent panel of the Grid.

Is there a complete tutorial for a scroll view for NGUI 3.0.6?

Thanks,
moghes

13
NGUI 3 Support / Why scroll view has rigidbody component attached
« on: January 13, 2014, 08:40:56 AM »
Hello,

I had been using NGUI 3.0 or earlier version, and now using 3.0.6 ..
when I go to the top menu, NGUI>create>Scroll View ..
I see a rigidbody component attached to the "scroll view" game object (child to Anchor).

Can someone explain why or what's the reason for that? Instead of being attached with the script "UIScrollView" ..

Thanks,
moghes

14
NGUI 3 Support / Sprites, Labels dissapear(are not rendered) at runtime
« on: October 14, 2013, 03:27:43 PM »
Hello everyone,

I've been working with NGUI for the first time and things were going much fine till now.

I don't know what happened when Items/sprites/labels started dissapearing without any reasonable reason.

For example I have my items listed in a scroll view, and when I hit the play button, some item do not show where they used to appear in the editor.
As I pause the game, I see the item (the outline) but not being rendered.
I check the depth (for example 9), as the other items also having a depth of 9, but being rendered normally.
I hit forward while game is still running, and the item appears (now with a depth of 10).

As I stop the game (new depth not being applied since changes were at runtime), and all items appear again, all with depth 9.
I am sure no code is accessing the depths.

Another problem occurs, when I hit forward to make an item show, suddenly other items are gone.
There are times that children labels don't appear, other times appear..
What a mess, I can't know where to start, what to fix or how to fix..
Can anyone tell what might have happened?

15
NGUI 3 Support / ArgumentOutOfRangeException
« on: October 14, 2013, 03:45:22 AM »
Hello everyone,

I faced this error after working a while with NGUI, I don't know where it came from or what caused it to happen.
Its in the UIPanelInspector.cs script line 216.

" ArgumentOutOfRangeException: startIndex + count > this.length
Parameter name: count"

Any hints please?

Pages: [1] 2