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

Pages: 1 [2]
16
NGUI 3 Support / Re: Showing and Hiding Panels
« on: March 08, 2014, 04:23:41 PM »
Thanks @ArenMook that solved the issue...

17
NGUI 3 Support / Showing and Hiding Panels
« on: March 08, 2014, 10:06:01 AM »
Hi guys,

So I made a custom script for a button to show and hide the options panel in my screen. But I found a small issue, the script works but it seems I have to click twice for it to work. Let me show you the script.

  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class ButtonOptions : MonoBehaviour
  5. {
  6.         public GameObject optionsPannel = null;
  7.         private bool isActive = false;
  8.  
  9.         void OnClick()
  10.         {
  11.                 if (isActive == false)
  12.                 {
  13.                         NGUITools.SetActive (optionsPannel, true);
  14.                         isActive = true;
  15.                 }
  16.                 else
  17.                 {
  18.                         NGUITools.SetActive (optionsPannel, false);
  19.                         isActive = false;
  20.                 }
  21.         }
  22. }
  23.  

Problem arises that I have to click twice for the buttons to work, any suggestion or help would be greatly appreciated.

18
NGUI 3 Support / UIFontMaker CS error when I import the package
« on: March 04, 2014, 07:31:32 PM »
So I bought this from the asset store and imported the package, then I got this error and I don't know how to fix it.

Assets/NGUI/Scripts/Editor/UIFontMaker.cs(203,74): error CS0117: `Path' does not contain a definition for `GetFileName'

If you guys can give me a hand, I would be deeply thankful!

Pages: 1 [2]