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

Pages: 1 2 3 [4]
46
NGUI 3 Support / NGUI as a particle engine?
« on: May 14, 2012, 11:30:20 PM »
NGUI, as the name suggest is a Unity plugin that allows the user to quickly and easily make menus.

But is it suitable (for example) spawning particles and doing things with sprites that has no connection with menus?

47
NGUI 3 Support / AutoResizeButton ?
« on: May 13, 2012, 11:22:20 PM »
Is there anyway (or an existing function I can drag in) to resize the X scale of a button depending on the width of the text?

Right now unless I make a particular button wide enough for 2 different text strings, text in 1 language will overflow out of the button, but doing so sometimes mean the other text string is too small in a wide button.

48
NGUI 3 Support / Getting all Japanese Fonts to appear?
« on: May 11, 2012, 06:11:28 AM »
I have a Japanese font and UTF8 text displayed in it. However I have noticed some symbols are missing. Presumably there isn't enough room in the atlas/selected font image to display all the characters.

The font was created using "Bitmap font generator". Not sure if this is a problem with Unity or NGUI but I just thought I would ask and see if this has been reported before.

49
NGUI 3 Support / Copy Localisation file into Hierarchy Window
« on: May 09, 2012, 10:00:01 PM »
My GameObject that has the "Localisation" script attached to it. Is there anyway to automatically copy this into the Hierarchy upon compiling?

Of course if I delete this file there is an error, even though it exists in the Project window. Would be nice if the file was created upon compilation and deleted automatically when the program has finished running. Is this possible?

Thanks :)

50
NGUI 3 Support / Searching for UILabels in an object by name?
« on: May 09, 2012, 01:05:32 AM »
Is there anyway to get an object in the Menu list by name? So far I have my default menu that I am spawning from a prefab. I can change the text ok but to get to the objects I am doing something like

window_name = theMenu.GetComponentsInChildren<UILabel>()[0];
main_body = theMenu.GetComponentsInChildren<UILabel>()[1];

Now this works only because of the current order of the menu and is not really that stable, if I add a button or want to change my menu, it will probably find the UILabel from somewhere else instead of what I am expecting. What I am really trying to do is something like this:-

window_name = theMenu.GetComponent("Window Name");
main_body = theMenu.GetComponent("Main Body");

Thanks for reading.

51
NGUI 3 Support / Changing language
« on: May 08, 2012, 08:18:11 AM »
Ok, this is probably a really simple question, and it probably is more to do that I am not so sure of Unity rather than NGUI.

My issue, I am using the Localization, and UILocalize. My menu buttons are already in two separate text files for Japanese and English, I am all set up and working, just like in the tutorial. Yet, I can't seem to figure out to do the simplest of things, which is to change the language once the program has started in code.

What I am looking for I guess is:-

"Localization.instance.languages = 0; // Japanese"
"Localization.instance.languages = 1; // English"

The above gives me an error though, I guess what I am trying to do is probably really simple.

52
NGUI 3 Support / Code Tutorials?
« on: May 07, 2012, 08:49:45 PM »
After spending yesterday playing with NGUI and also watching several youtube tutorials I feel like using NGUI is going to be an awesome asset.

What I can't seem to find though is some sort of basic tutorials on how to do things in code. All the stuff I have seen so far use drag and drop and have all the menus automatically in the scene before you click play. Perhaps I just haven't looked hard enough and found a link. What I would like to look at are some basic tutorials (preferably in C#) of just doing simple things like creating a menu and deleting it in code. Attaching a NGUI script in code to an object instead of using the Unity GUI etc. There are so many little bits of juicy source code that it is a bit daunting to know where to start.  ;D

Pages: 1 2 3 [4]