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

Pages: 1 [2] 3
16
NGUI 3 Support / Blurry textures after one run.
« on: April 22, 2014, 11:06:22 AM »
Hey. I have this problem. When I first-run my newly built standalone game, everything looks normal. However, when it quits and I want to play it again, all the textures turn blurry. I have even tried building it on mac, but the problem persists.

I have one atlas for all sprites that is 4096x4096.

Also I have found, that when I run the game normally, then once in Unity Editor and the normally again, the textures are normal for that run.

Any help?

17
NGUI 3 Support / Re: Selecting one item from grid
« on: May 22, 2013, 03:59:36 AM »
I'll try it. Thanks.

18
NGUI 3 Support / Re: Selecting one item from grid
« on: May 16, 2013, 11:51:44 AM »
Any suggestions? :(

19
NGUI 3 Support / Re: Selecting one item from grid
« on: May 15, 2013, 10:55:09 AM »
Don't know, what I did wrong. I have put Button script on the items, then put the script on each of them. It just doesn't do anything. And yeah, I have put the overlay sprites into inspector.

20
NGUI 3 Support / Re: Selecting one item from grid
« on: May 14, 2013, 02:10:31 PM »
Thanks. I will try that tomorrow, and post what I got.

21
NGUI 3 Support / Selecting one item from grid
« on: May 14, 2013, 12:22:25 PM »
Hi. Well... my menu is almost done! One last thing I need to do. I have grid with items, and I want to be able to select between them. Like there are 4 countries, and when you click on one, it gets yellow overlay. When you click on another, the first loses its overlay, and the another one gets it. Could you please help me with script, or tell me if there's some tutorial somewhere? Thanks.


I know that this text doesn't make much sense, but I really don't know how else to say it...

22
NGUI 3 Support / Re: Changing Sprite textures with script
« on: May 04, 2013, 04:47:04 AM »
Oh lol. I have overlooked that... Thanks.

23
NGUI 3 Support / Changing Sprite textures with script
« on: May 03, 2013, 12:53:32 PM »
Hey! I Finally almost finished my menu, but I ran into a problem. I'm trying to change sprite on Popup-list selection change. I haven't found any tutorials, so I made this post. This is my code right now (As you may know from my previous posts, I really suck at coding):
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4.  
  5. public class Pokemon : MonoBehaviour {
  6.    
  7.     public List<string> Starters;
  8.     public string pokeInt;
  9.         public UISprite BulbasaurIcon;
  10.    
  11.     // Use this for initialization
  12.     void Start () {
  13.             Starters.Add("Bulbasaur");
  14.                     Starters.Add("Charmander");
  15.                     Starters.Add("Squirtle");
  16.     }
  17.    
  18.     // Update is called once per frame
  19.     void Update () {
  20.    
  21.     }
  22.    
  23.     public void OnSelectionChange(string mSelectedItem) {
  24.         if(Starters.Contains(mSelectedItem)) {
  25.             Debug.Log("Changing Starter");
  26.             pokeInt = mSelectedItem;
  27.             BulbasaurIcon.spriteName = pokeInt;
  28.         }
  29.     }
  30. }
!!!This isn't completely my code. I just edited the code, I'm using to change Graphic Quality!!!
(and yes, I'm making a pokemon game :P)
This code doesn't show any error, but it either doesn't work, or I'm putting it onto wrong object...

24
NGUI 3 Support / Re: Quality Settings
« on: April 21, 2013, 02:00:36 PM »
Yay! Thanks a lot Zarack. This really helped.

25
NGUI 3 Support / Re: Quality Settings
« on: April 21, 2013, 09:42:47 AM »
OnSelectionChange
And I don't really know. As I said, I just copied the code from the tutorial and edited it a bit.

26
NGUI 3 Support / Re: Quality Settings
« on: April 21, 2013, 01:33:40 AM »
Well, I have set up the unity quality settings, but it's still the same. I also tried this:
  1. using UnityEngine;
  2. [ExecuteInEditMode]
  3. [RequireComponent(typeof(UIWidget))]
  4. [AddComponentMenu("NGUI/Examples/Set Color on Selection")]
  5. public class SetQualityLevel : MonoBehaviour{
  6.    UIWidget mWidget;
  7.    void OnSelectionChange (string val){
  8.       if (mWidget == null) mWidget = GetComponent<UIWidget>();
  9.       switch (val)
  10.       {
  11.          case "Lowest":   QualitySettings.SetQualityLevel(1, true);   break;
  12.          case "Lower":   QualitySettings.SetQualityLevel(2, true);      break;
  13.          case "Low":   QualitySettings.SetQualityLevel(3, true);   break;
  14.          case "Normal":   QualitySettings.SetQualityLevel(4, true);      break;
  15.          case "High":   QualitySettings.SetQualityLevel(5, true);   break;
  16.          case "Ultra":   QualitySettings.SetQualityLevel(6, true);      break;
  17.       }
  18.    }
  19. }
and putting the Lowest, Lower into "".
The version with numbers doesn't show any error, but it doesn't work. (Tried in both, Unity Editor and Stadnalone)

EDIT: My quality settings are in pic.

27
NGUI 3 Support / Re: Quality Settings
« on: April 20, 2013, 10:38:05 AM »
Yeah. I realized that too, but how can I define them and where?

28
NGUI 3 Support / [Solved]Quality Settings
« on: April 20, 2013, 02:21:12 AM »
Hey. I'm trying to make a POPUP menu, where you can change Quality Settings. I don't understand the
  1. QualitySettings.SetQualityLevel(i, true)

This is my code: (I have just edited the code from tutorial.)
  1. using UnityEngine;
  2. [ExecuteInEditMode]
  3. [RequireComponent(typeof(UIWidget))]
  4. [AddComponentMenu("NGUI/Examples/Set Color on Selection")]
  5. public class SetQualityLevel : MonoBehaviour{
  6.    UIWidget mWidget;
  7.    void OnSelectionChange (string val){
  8.       if (mWidget == null) mWidget = GetComponent<UIWidget>();
  9.       switch (val)
  10.       {
  11.          case "Lowest":   QualitySettings.SetQualityLevel(Lowest, true);   break;
  12.          case "Lower":   QualitySettings.SetQualityLevel(Lower, true);      break;
  13.          case "Low":   QualitySettings.SetQualityLevel(Low, true);   break;
  14.          case "Normal":   QualitySettings.SetQualityLevel(Normal, true);      break;
  15.          case "High":   QualitySettings.SetQualityLevel(High, true);   break;
  16.          case "Ultra":   QualitySettings.SetQualityLevel(Ultra, true);      break;
  17.       }
  18.    }
  19. }

The error says, that the Lowest, Lower, Low... doesn't exist in current context.
Can somebody please help me?

29
NGUI 3 Support / Re: Animation on button click.
« on: April 13, 2013, 10:47:05 AM »
Oh. Well... I didn't know how to select the animation it should play, but I figured out that I just have to drag the object which has the animation into the blank field (I'm writing it so, if anyone have the same problem as me ( Also, sorry for bad English)).

30
NGUI 3 Support / Re: Animation on button click.
« on: April 13, 2013, 10:40:48 AM »
Thanks for the reply. I will try to do it trough the inspector. I will give further info if I succeed.

Pages: 1 [2] 3