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

Pages: [1]
1
NGUI 3 Support / Menu enter from left
« on: April 09, 2015, 04:08:49 AM »
Is possible to create one menu that enter from left and stop it on specific point ? I'm using TweenPosition but I have a problem because if the screen resolution change also the stop position must change....

2
NGUI 3 Support / Infinite scrollView
« on: January 13, 2015, 12:16:12 PM »
I want to create a scrollview that contain a text that scroll to the top automatically. But I also want that I can scroll it with a finger but when I not touch it must scroll up automatically and when it finishes it should start again. It' possible ? How can I do this ?

3
NGUI 3 Support / LightPoint
« on: January 05, 2015, 11:59:30 AM »
How can add one point light over a NGUI Texture into 2d menu ?

4
NGUI 3 Support / More menu and one click
« on: December 19, 2014, 01:11:46 PM »
I want that when I show a menu all other buttons under it not are clickable...how can I do it ? I try to use more panels with more depth but it not work...

5
NGUI 3 Support / Change UITexture runtime
« on: December 12, 2014, 09:45:09 AM »
I must change the texture of <UITexture> with an image that I download from web. The code is :

  1.                 userImg.GetComponent<UITexture>().material.mainTexture = SPFacebook.instance.userInfo.GetProfileImage(FacebookProfileImageSize.square);
  2.                 GameObject.Find("UI Root").GetComponent<UIPanel>().Refresh();
  3.  

It's right ? because the texture not change....

6
NGUI 3 Support / Error with Unity 4.6f1 and NGUI 3.7.6
« on: November 08, 2014, 05:43:54 PM »
I have this error when I NOT click play the scene is one background image and three button images

Quote
NullReferenceException: Object reference not set to an instance of an object
UIPanel.get_worldCorners () (at Assets/NGUI/Scripts/UI/UIPanel.cs:623)
UIPanelInspector.OnSceneGUI () (at Assets/NGUI/Scripts/Editor/UIPanelInspector.cs:87)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1659)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1078)
UnityEditor.SceneView.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:991)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at

7
NGUI 3 Support / How to make scene loading ?
« on: October 05, 2014, 12:48:46 PM »
Is possibile to create a loading screen for scenes with NGUI ? I would like also only the text "Loading..." without progress bar...I have not Unity Pro and I can't use Application.LoadLevelAsync and similar.

PS: It's enough also only a loading screen when the game start and to load all game's assets.

Thank you

8
NGUI 3 Support / What is the best way for to do....
« on: August 22, 2014, 12:13:09 PM »
I have this situation :
1) First scene where there are some button : play, option, info etc
2) If I click on play button I must go to the worlds choice screen
3) If I click on one world button I must go to levels choice the screen
4) If I click on one level button the game must start

The question is : what is the best way for to do this with NGUI ?
a) 4 scene with 4 ui root and call Application.levelload ?
b) 1 scene with 1 ui root and 4 Panel and enable / disable every panel for change the scene
c) There is another way ?



Thank you

9
NGUI 3 Support / Problem NGUI on android device
« on: August 20, 2014, 04:35:45 PM »
Hi ! I have a problem because my game on pc in android mode work fine but on android device I have many problem with NGUI. Look this video http://youtu.be/9YPuv6lpyaY

The device used is Samsung Note2 with android 4.3 (but I have the same problem also on Samsung Note3 with android 4.4.3 where the game also crash) and NOT on Galaxy S with android 2.3.6 where all works fine!!)

If I disable NGUI the game work fine.....what could be the problem?

Thank you


10
NGUI 3 Support / setActive not reactive the sprite
« on: August 01, 2014, 04:42:10 AM »
I disable the sprite with this code

  1. NGUITools.SetActive(GameObject.Find("Lives"+numLives)),false);

and I want to reactive it with :

  1. public void restartLevel ()
  2.         {
  3.                 if(Lives<=0){
  4.                         Lives = savedOriginalLives;
  5.                         for(int j=1; j<=savedOriginalLives;j++){
  6.                                 NGUITools.SetActive(GameObject.Find("Lives"+j),true);
  7.                         }
  8.                 }
  9.                 heightScore = false;
  10.                 Time.timeScale = 1;
  11.                 controlMenu = false;
  12.                 setPlayerState(false);
  13.                 Application.LoadLevel(Application.loadedLevel);
  14.         }

Why it not work ??

11
NGUI 3 Support / Display menu after event
« on: July 28, 2014, 07:42:30 AM »
Good morning, I want to display my menu when the player dies (no when I click a button), I don't understand how can I do this...
My project structure is :

1) Main Camera
2) All level's objects
3) UI Root with child Panel (this is the menu that I want to display) and Camera

Thank you ! 

Pages: [1]