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 - Shifty Geezer

Pages: [1] 2 3 ... 16
1
NGUI 3 Support / Re: UIInput not submitting on Android 'return' key
« on: February 01, 2018, 06:00:57 AM »
Found a fix if I set the text label to 1 line only.

2
NGUI 3 Support / Re: Load new Scene on Button Press
« on: January 31, 2018, 06:24:23 PM »
Use the existing Event system. Attach a UIEventTrigger script to your button in the inspector. Add your script and method with its one parameter in the OnPress event. You pass an object to the parameter and select a property from it. I use a super simple script that just has a public int attached for things like level selection, and I pass that as a parameter in the UIEventTrigger parameter.

So I have two scripts on a level selection button, UI_Number that just has a public int, and UIEventTrigger that passes this int value to the script.

3
NGUI 3 Support / Re: Sprite Atlas Transparency Issues
« on: January 31, 2018, 06:14:40 PM »
If you're trying to use sprites for both NGUI and in Unity, why not use a Unity 2D Sprite instead of an NGUI atlas?

4
NGUI 3 Support / Re: Is NGUI still actively supported?
« on: January 31, 2018, 06:11:57 PM »
It really needs to be! Unity's GUI is dog slow by comparison, plus I've spent two years slowly getting used to how NGUI works and can't change to another UI now!

5
NGUI 3 Support / UIInput not submitting on Android 'return' key
« on: January 31, 2018, 06:08:46 PM »
I've a UIInput field with Return action set to 'submit'. It works as expected on PC, calling its OnSubmit event. On a Shield Tablet running Android 7, the return key adds a new line. Same incorrect behaviour on a Nexus 7 running Android 6.

I'm using NGUI 3.11.4

6
NGUI 3 Support / Re: change tween easing method in code
« on: July 30, 2017, 10:57:17 AM »
Are you sure you want to change the easing method? If you really do, use the AnimationCurve property

myTween.animationCurve = AnimationCurve.EaseInOut(0f,0f,1f,1f);

That's an ease-in Curve, and (1,1,0,0) is a typical ease-out

7
NGUI 3 Support / Re: Using Unity VideoPlayer in NGUI
« on: July 30, 2017, 10:51:35 AM »
Found it! UITexture component with a material that shows an unlit rendertexture. Awesome!

8
NGUI 3 Support / Using Unity VideoPlayer in NGUI
« on: July 30, 2017, 10:33:37 AM »
Any way to do this? Very important feature I think these days - I need it for short video tutes because no-one will read instructions any more! I've tried using RenderTextures and sprites and Unity UI2D Sprite and things with no success.

9
NGUI 3 Support / Inconsistent controller affect on menus
« on: July 11, 2017, 05:44:05 AM »
I've found that when a controller is plugged in to PC (Dual Shock 3), sometimes it starts overriding the mouse, causing the mouse to jump to the centre of the screen. Why would input of the controller, assuming noise on one of the analogue channels, do this? Surely the mouse shouldn't be affected by controller input.

10
NGUI 3 Support / Re: Mouse cursor resetting to center screen on move?
« on: July 08, 2017, 11:22:36 AM »
I'm experiencing the same issue using mouse game. Only using the mouse for input (emulating touches - the game is aimed at touch screens), sometimes when playing in the editor the mouse decides to keep being centred at fractional second intervals; it's not every frame judging by the distance the pointer moves. I had it just now where it kept doing this every run, and restarted Unity where the problem was fixed (other than the sporadic issue always faced). I have a PS3 controller attached via USB which might be involved? I'm guessing it's something like that because restarting Unity eased the problem, but it's not consistent.

Next time I'll try disabling the controller in UI camera. However they should be able to operate side-by-side.

11
NGUI 3 Support / Re: Label wrap problem
« on: June 19, 2017, 03:36:40 AM »
Yeah, Amazon S3 decided to muck it about. Thanks for that. Stripping the first char fixed the word-wrapping....
  1.         WWW w = new WWW("https://s3.eu-west-2.amazonaws.com/com.softwaregeezers.novawars/news.txt");
  2.         newsLabel.text = w.text.Substring(1,w.text.Length-1);
  3.  

12
NGUI 3 Support / Re: Label wrap problem
« on: June 18, 2017, 07:51:16 AM »
Found email address in 'don't post projects with NGUI source' thread.
Did you get my email?

13
I've closed projects with uncompiled code with errors and not lost anything. When I open them, NGUI doesn't initialise - nothing initialises because the code can't build! I fix my code and the whole thing compiles including NGUI scripts and everything works fine.

14
NGUI 3 Support / Re: Data binding possible for formula
« on: June 17, 2017, 03:20:00 AM »
Don't know, but I wouldn't have thought so. Very little call for parsing text input to maths formulas. This is a generic Unity question so ask around the forums.

15
NGUI 3 Support / Re: Data binding possible for formula
« on: June 16, 2017, 02:24:20 PM »
No. It's just a UI library for displaying images and text. You'd need to write your own formula processing for an input enabled UI Label and call it in the On Submit event. http://www.tasharen.com/forum/index.php?topic=6752.0

Pages: [1] 2 3 ... 16