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.


Topics - yohann

Pages: [1]
1
Misc Archive / Test-driven development with Unity?
« on: February 06, 2014, 05:39:40 PM »
Does anyone do test-driven development with Unity? I can find very little about it online which suggests not many are doing it. I'd love to hear if anyone has any experience with this.

2
Misc Archive / The default schedule of Michael Lyashenko
« on: February 03, 2014, 04:27:38 PM »
I would love to know what your default weekly schedule looks like...how you arrange your work day/week to allow you to improve awesome tools like NGUI, provide amazing support, have a life, sleep, etc.

Can you share?

3
I have an NGUI UI with a 3 x 3 grid of crosshairs that overlays a first person view. That all works great, but now I need to be able to do/show stuff when each of those 9 crosshairs overlays an object in the 3D world.

Maybe put simpler, how do I detect when an NGUI element is over a 3D gameobject, and then get info about that 3D object?

I'm usually pretty good at figuring stuff out, but I'm at a loss here of where to even start. Any ideas or direction is greatly appreciated!!

4
NGUI 3 Support / UIButton OnClick settings get erased from Editor (3.0.0d)
« on: September 25, 2013, 08:19:12 PM »
I'm using the new feature in the editor to assign a method to a UIButton's OnClick stuff. This UIButton object is part of a prefab that spawns many buttons at runtime that load different levels. When I test the game, everything works as it should, but when I stop the game, the OnClick stuff gets reset to it's empty state.

HOWEVER...

If I'm not viewing the OnClick stuff in the Inspector while doing the test above, everything stays saved...nothing gets erased. It's only when I have the OnClick stuff showing in the Inspector does stuff get erased after I stop the game.

[UPDATE] just to clarify, you need to load a different level while testing the game to see the OnClick settings get reset in the Inspector

5
(SEE ATTACHED IMAGE) I have two cameras, sort of a picture-in-picture, except I want to toggle between full screen and a "windowed" screen. I'm making the windowed screen via the camera.pixelRect property. This works fine...until I add an NGUI element, at which point the disabled full screen camera doesn't clear the image from the screen after it's disabled. Please please help.


EDIT: I've discovered that I can fix this by changing any of the values of Normalized View Port Rect of the NGUI camera by some insignificant amount, such as changing the W param from 1 to 1.001. This gets it working, but I'd sure like a non-hacky way of solving this. Any ideas?

Pages: [1]