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

Pages: [1]
1
NGUI 3 Support / NGUI + TouchScript in Unity3d 5 not work
« on: September 16, 2015, 09:58:42 AM »
Do not know what exactly is the problem, in the version of Unity 4.8 everything works fine, the same 5 does not function in the assembly and in the touch screen, everything works in Editor.

2
NGUI 3 Support / Re: The problem with Localization
« on: July 16, 2014, 04:16:51 AM »
Thank you very much, helped  :)

3
NGUI 3 Support / Re: The problem with Localization
« on: July 15, 2014, 05:09:40 AM »
Uploading through script

public class DownloadLocalizationCSV : MonoBehaviour
{
    public string LanguageFile = "Language";
    public string LanguageDefault = "Russian";
   
    private void Awake()
    {
        Localization.LoadCSV(Resources.Load<TextAsset>(LanguageFile));
        Localization.language = LanguageDefault;
    }
}

File "cvs" in Attach.
Regularities of one character and a newline character is minus one at the beginning

4
NGUI 3 Support / The problem with Localization
« on: July 14, 2014, 05:51:18 AM »
Good day
What could be the problem when I read the entry from the file "csv" and the records are present signs newline "enter" in units text is clipped at the beginning of a few characters.
How to solve this problem? To create a file using the Google file

What file---->>
The total area of ​​the project planning area of 6.3 hectares.

Zone area of 3.5 hectares.
Ridership 3.0 thousand rush hour.

What happens ---->>>
 total area of ​​the project planning area of 6.3 hectares.

Zone area of 3.5 hectares.
Ridership 3.0 thousand rush hour.

5
NGUI 3 Support / Re: NGUI Instantiate create on center
« on: March 11, 2014, 05:56:03 AM »
The solution was found through ...
NGUITools.AddChild(transform.parent.gameObject,gameObject).transform.localPosition = chacheTransform.localPosition;
If there is a better way direct  :)

6
NGUI 3 Support / NGUI Instantiate create on center
« on: March 11, 2014, 05:29:25 AM »
Trying to create a copy of the object (NGUI) through Instantiate. Debug.Log (copy.transform.localPosition); prominence (-181.0, 230.0, 0.0), although in fact created a sprite to be in (0, 0, 0). What am I doing wrong? NGUI latest version.

  1.  private void OnGUI()
  2.     {
  3.         if (GUI.Button(new Rect(10,10,100,50), "asdad"))
  4.         {
  5.             copy = Instantiate(gameObject) as GameObject;
  6.             Debug.Log(copy.transform.localPosition);
  7.         }
  8. }

7
NGUI 3 Support / Re: How to set the maximum range in UIDragResize
« on: February 17, 2014, 09:59:24 AM »
Quick do not work, you should still limit movement when masshtabiruesh dostigaesh and maximum limit  :(

8
I would really appreciate  :)

9
NGUI 3 Support / How to set the maximum range in UIDragResize
« on: February 14, 2014, 06:57:00 AM »
Good day
Who can tell how to set the maximum range in UIDragResize or workarounds.

10
NGUI 3 Support / Add a function to Toggle (groop N - state isNone)
« on: December 11, 2013, 02:27:27 AM »
Could you add a toggle can disable it if a group of 1 or more.
My implementation

UIToggle.cs
-----------
  1. public bool isNone;
  2. public bool value
  3.         {
  4.                 get { return mIsActive; }
  5.                 set { if (group == 0 || value || optionCanBeNone || !mStarted||isNone ) Set(value);}
  6.         }
  7.  

UIToggleInspector.cs
----------
  1. public override void OnInspectorGUI ()
  2.         {
  3. .....
  4.              NGUIEditorTools.DrawProperty("Starting State", serializedObject, "startsActive");
  5.              NGUIEditorTools.SetLabelWidth(100f);
  6.              NGUIEditorTools.DrawProperty("IsNone", serializedObject, "isNone");
  7.              NGUIEditorTools.SetLabelWidth(80f);
  8. ......
  9.        }
  10.  

Сan be written is not entirely correct, but like works  :)

Sorry for my English, I use a translator

Pages: [1]