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

Pages: [1]
1
NGUI 3 Support / A Way to make an "unlit" Sprite?
« on: June 05, 2014, 07:10:28 AM »
I've tried adding my own sprite but it doesn't show up. So I added a Sprite with nGUI and went through the process of applying my own material to it so get a logo to show up. However it's dark and barley view-able. Is there a way to make it brighter or not have a light effect? I changed the shader on the material to unlit but doesn't seem to make a difference.

2
Ok that sounds good. I'm out of town too till 5/24 anyway, so anytime next week works for me too.

3
Well it doesn't crash in exit the game but the error message shows up in the debug window. I'll send you private message to my source code. *Work in progress*

4
My Unity buttons worked fine, but when I added NGUI buttons, it worked fine in Unity testing it but when I deploy it to the Windows Phone 8, on a Nokia 1020 Lumnia, pressing an NGUI button crashes in the dev console window. Using nGui 3.6.0

See Attachment

Exception: Method not found: System.Reflection.MethodInfo
System.Type.GetMethod(System.String, system.Reflection.BindingFlags)

Type: System.MissingMethodException
Module: Assembly-CSharp
InnerException: <No Data>
AdditionalInfo:Invoking UIButton::OnClick method with argument count: 0
   at EventDelegate.Cache()
   at EventDelegate.Execute()
   at EventDelegate.Execute(List'1 list)
   at UIButton.OnClick()
   at lambda_method(Closure, object, object[], int32)
   at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[] args)

I've even tried a barebones project and still crashes.

5
I wanted by button to call a function in a script to load the next scene.

Not sure if this is the best way but I created an empty gameobject and dragged my script on it. It has a public function and a parameter for string levelName.  However when I point to that object in the UIButton and that method, the arg0 wants an object and I can't type in the value in the designer. Using nGui 3.6.0

6
Solved. I didn't realize, and somehow missed it in the video, that I had to select an Atlas first. Then it shows up.

7
NGUI 3 Support / Re: Missing the "Sprite" button on my Sprite
« on: May 19, 2014, 04:38:28 PM »
To add to previous, Tutorial 3 I'm missing the UIButton script options to change the Sprites for OnHover etc..  I re-imported nGui, still not fixed.


8
NGUI 3 Support / Missing the "Sprite" button on my Sprite (Solved)
« on: May 19, 2014, 04:20:46 PM »
I tried searching for this answer and reading through FAQ's, no luck.

I just downloaded/installed/imported nGui 3.6.0 (never had a previous version before). I'm watching Tutorial 2 (https://www.youtube.com/watch?v=aWZaq1eLqyE) and on his Inspector under UISprite script he has a "Sprite" button he uses to set the sprite to something.  I don't have this button. I tried a new scene and re-added a sprite and nothing.  Also I don't know if it's normal but when I click on "Edit" next to the Atlas button, Wooden Atlas I get an error NullReferenceException: Object reference not set to an instance of an object
UISpriteInspector.ShouldDrawProperties () (at Assets/NGUI/Scripts/Editor/UISpriteInspector.cs:63)

Not sure if they are related.

Pages: [1]