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

Pages: [1]
1
NGUI 3 Support / UIInput OnReturnKey
« on: June 25, 2014, 09:47:54 AM »
Hello,

I'm very new to the whole Delegate concept. I don't get how to achieve this:

I have a UIInput field. When the user presses the NewLine-key, the text field is supposed to submit its contents.

So this is how I think it should work:
  1. public UIInput input;
  2. void Start()
  3. {
  4.   input.onReturnKey = SubmitMessage();
  5. }
  6.  
  7. private UIInput.OnReturnKey SubmitMessage()
  8. {
  9.   input.Submit();
  10.   return UIInput.OnReturnKey.NewLine;
  11. }

Needless to say, it doesn't. How is this system supposed to be used? Any help is much appreciated...

2
NGUI 3 Support / Re: Android problems
« on: May 09, 2014, 08:08:16 AM »
Thanks for the quick reply!

Alright, that sounds like a simple solution.

3
NGUI 3 Support / Android problems
« on: May 09, 2014, 02:39:08 AM »
Hey guys,

first post and right away an interesting problem:
I built a nice main menu for my game, everything has proper hierarchies and anchors. It works fine in Unity but as soon as I put it on my Android device, I get weird issues. For example, one of my sprites just randomly decides to wobble around and distorts horribly. It appears not as a 2D sprite but a textured plane in 3D. And yes, I checked my additional cameras, they can't see it.
The weirder thing is that the children of this sprite are not affected by this at all, they remain in place and continue working.

Any ideas why this happens?
Thanks in advance!

Pages: [1]