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

Pages: [1]
1
NGUI 3 Support / Reposition UI Grid without destroying Grid elements ?
« on: November 12, 2014, 08:13:37 AM »
Hi,

I just wanted to know if there is any possibility of hiding elements from a grid by disabling them rather than destroying them? I tried to use UIGrid.Reposition() and repositionNow variable without any success even with removeChild(). Did I miss something or is it just impossible to do it this way?

Thanking you in advance,
abclive

2
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 23, 2014, 03:58:41 PM »
I will try that ASAP thanks !

3
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 23, 2014, 06:51:17 AM »
Still have no clue on how to fix this bug. Can anyone try to reproduce it ?

4
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 21, 2014, 03:49:13 PM »
Thanks for the answer. I just want the scrollview width to fit the screen width.

5
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 21, 2014, 11:52:46 AM »
But does the ScrollView will follow the guide from the parent ?

6
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 21, 2014, 03:41:54 AM »
Like I said at the end of my first post yes I tried using OnEnable and yes it fix only the game part. The editor bug is still present. And I don't really understand why I can't anchor my scroll view and why there is a conflict ? How do I manage to have a responsive layout then ?

7
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 20, 2014, 10:47:46 AM »

Here is my hierarchy, I highlighted the things that are anchored. I anchored them in advanced mode for have a responsive scroll view. None of the items in the grid are anchored nor the grid.

8
NGUI 3 Support / Re: Scrollview glitching when anchored
« on: July 19, 2014, 01:48:46 AM »
L and R anchor are respectively Left and Right anchor. They are child of UIRoot only and they have no childrens.

9
NGUI 3 Support / Scrollview glitching when anchored
« on: July 17, 2014, 07:36:44 AM »
Hello everyone !

I've found a weird bug when using Scrollview. I wanted it to be width responsive, so I made two anchors refreshed onUpdate. One based on the left side and the other one in the right side. But as soon as my Scrollview is anchored to them it's get super glitchy. I cannot move it anymore since he goes in the wrong way and with an exponential speed (and in addition to that item still have a normal behaviour). But the real big problem is that on every frame, the Scrollview move down by itself. Even in the editor when I tweak a value for example.

Here is a video of the glitch :
https://www.youtube.com/watch?v=LnEP8bLuQjM

And a screen of my hierarchy:


I'm using Unity Free 3.5.0f6 and the latest version of NGUI Pro.
PS: If I put the Anchor refresh OnEnable it's only fix the problem on play.

10
NGUI 3 Support / Re: How to get multiple input values ?
« on: June 17, 2013, 05:11:13 PM »
Okay just removing them ...

11
NGUI 3 Support / Re: How to get multiple input values ?
« on: June 17, 2013, 05:09:57 PM »
Okay I understood something, my start function is reseting values, how to fix that ?

12
NGUI 3 Support / How to get multiple input values ?
« on: June 17, 2013, 12:23:54 PM »
Hi everybody !

Today I tried to get multiples values from differents input by using a single script. But I have a "NullReferenceException: Object reference not set to an instance of an object". So I though that I could ask your help.

So here is my script :

  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. [RequireComponent(typeof(UIInput))]
  5. [AddComponentMenu("/Scripts/MenuManager")]
  6. public class MenuManager : MonoBehaviour {
  7.        
  8.         public MenuManager instance;
  9.        
  10.         public UIInput slots;
  11.         public UIInput matchname;
  12.  
  13.         public string CurrentMenu;
  14.         public string MatchName = "";
  15.         public string MatchPassword = "";
  16.         public int MatchMaxPlayers = 32;
  17.         private string iptemp = "127.0.0.1";
  18.        
  19.         private Vector2 ScrollLobby = Vector2.zero;
  20.        
  21.         void Start(){
  22.                
  23.                 instance = this;
  24.                 slots = GetComponent<UIInput>();
  25.                 matchname = GetComponent<UIInput>();
  26.                 //CurrentMenu = "Main";
  27.         }
  28.        
  29.         void Update(){
  30.                 MatchName = matchname.text;
  31.                 int SlotNumber = int.Parse(slots.text);
  32.                 MatchMaxPlayers = SlotNumber;
  33.         }
  34.        
  35.         void FixedUpdate(){
  36.                 instance = this;       
  37.         }
  38. }

This has been written with the Unity GUI based system so there is some thing which don't belong here but please don't care about it.

The error is on this line :

MatchName = matchname.text;

Here's a screen of my settings : http://d.pr/i/GWZ2

I hope that you could help me resolving this problem :) Thank you in advance and apologize for my bad english.

Pages: [1]