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

Pages: [1]
1
NGUI 3 Support / change Color UILabel
« on: November 06, 2014, 03:27:40 PM »
Hi everyone.

I need to change Color of UILabel,

  1. UILabel lbl = transform.GetComponent<UILabel>();
  2. lbl.color = new Color(210f,211f,204f,255f);

but dosent work this form... the result is other: R: 12330, G: 41234 ... others values, i need this color ... i need help.

thanks

2
NGUI 3 Support / draw line, rectangle into panel
« on: September 15, 2014, 12:27:10 PM »
Hi everyone,

I need draw line, rectangle and others into panel, this panel is will moving, Please help me.

3
Misc Archive / doesn't load image in uitexture android
« on: July 22, 2014, 03:30:06 PM »
Hi everyone, I have a problem with to load a texture, and i dont know why.

I want download many images from internet and put in UITexture directly and its work fine in editor but this doesn't work in android, I tested many ways and nothing

With this code I create a GameObject with necessary script

  1. _objectPicture = _createGUI.GUIObject("Photo_"+i.ToString(),new float[]{_position, 0 ,0},new float[]{10,10,1},ContainerPhotos);
  2.                         _texture = _objectPicture.AddComponent<UITexture>();
  3.                         _objectPicture.AddComponent<DownloadPhoto>().url = Constants.LinkDownloadPhoto+N["images"][i];
  4.                         _objectPicture.AddComponent<UIDragPanelContents>();

And with this script i download the image from web but before it shows the preloading image and then the photo

  1. void Start() {
  2.  
  3.                 _texture = GetComponent<UITexture>();
  4.  
  5.                 _texture.mainTexture = (Texture)Resources.Load("images/Logo") as Texture;
  6.                 _texture.MakePixelPerfect();
  7.  
  8.                 StartCoroutine(DownloadImage());
  9.         }
  10.  
  11.         IEnumerator DownloadImage() {
  12.  
  13.                 WWW www = new WWW(url);
  14.                 yield return www;
  15.  
  16.                 _texture.mainTexture = www.texture;
  17.                 _texture.MakePixelPerfect();
  18.                 gameObject.AddComponent<BoxCollider>();
  19.                 gameObject.transform.localScale = new Vector3(534,388,1);
  20.         }

4
NGUI 3 Support / make UISprite, UILabel with script with position
« on: January 28, 2014, 04:37:50 PM »
hi everyone...

i want make UISprite, UILabel with script ... in any position ..  thnks

5
NGUI 3 Support / how make to change language on ios system?
« on: August 19, 2013, 06:15:52 PM »
hello everyone...
i development an app and i want change language in this app but i need idea.

* change language only in ios system, there change the PlayerPrefs.SetString("language", "<configIOSsystem>"). (when scene load, first calls this and show text accourding to the language)

i need ideas for that... tnksss


6
NGUI 3 Support / Why no load texture in Iphone 4?
« on: August 16, 2013, 12:38:34 PM »
hi everyone ...
i have a problem ... i want load image for iphone but that no load in Iphone 4, in iphone 4s is normal too iphone 5 ... thanks

7
hello everybody ...

i need change button image sprite when button click from ON to OFF...
similar to:
  1. mymenugui.GetComponentsInChildren<UISprite>()[0].spriteName = "image_name";

but as I would
 help me !!!

8
NGUI 3 Support / how move panel position with effect
« on: January 02, 2013, 03:51:40 PM »
hello everybody ... how move panel position with delay, fadein effect, when i will click on other button ... thnks

9
NGUI 3 Support / Change position button with effect when i clicked
« on: December 28, 2012, 04:46:06 PM »
Helo guys ...
how Change position button with effect when i clicked hover button, this effect wiil be delay or other, or there is a script to this... help me thankss...

10
NGUI 3 Support / Change Button Image with my own image
« on: December 28, 2012, 12:26:49 PM »
hello guys, i new with unity too with ngui..

how i can change button image with my own image, i will make  menu customisable... thanks

11
NGUI 3 Support / How put Text and Image into Panel
« on: December 20, 2012, 03:21:42 PM »
hello guys.!!

i'm new with unity...!! how i make put imagen+text (bold and normal) into panel.., all text is dinamiclly when i select or click in an image... please helpme... thanks

Pages: [1]