Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MasashiWada on August 12, 2014, 05:02:36 AM

Title: 3.6.9 build error on WindowsStoreApps
Post by: MasashiWada on August 12, 2014, 05:02:36 AM
hi

build error on WindowsStoreApps build

NGUI/Scripts/Internal/EventDelegate.cs (76,22)

if (expectedType.IsValueType) return null;
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: ArenMook on August 12, 2014, 07:06:58 AM
How did you get it to be null? It starts as 'typeof(void)'...

You can get around it by changing the line to check for null, but it doesn't explain what happened to cause it to become null in the first place.
  1. if (expectedType != null && expectedType.IsValueType) return null;
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: MasashiWada on August 12, 2014, 09:00:14 AM
hi,

When I build, I see the error message of the compiler.
So I can not output the project of the WSA.

The error is not a run-time.
IsValueType property does not exist in the WSA.
Do I have failed to integrate the NGUI?

They will be able to build correctly iOS, on Android and on the Editor.
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: MasashiWada on August 12, 2014, 09:03:19 AM
It is not an error message in English, but I will describe you if you want if.
But, in that you try to build the WSA, the same states will be reproduced.
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: citizen12 on August 12, 2014, 06:38:20 PM
I am seeing the same error. 

Error   1   'System.Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)   Assets\NGUI\Scripts\Internal\EventDelegate.cs   76   
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: citizen12 on August 12, 2014, 07:21:31 PM
I commented out the offending line just to get the build working.  Once I did, however, I saw weird behavior with the keyboard when running NGUI Example 0 on my Surface.

If I tap in a text field, the keyboard comes up.  When I tap outside the keyboard it goes away.  The problem is, this only happens once.  Subsequent taps in either of the text fields yield no keyboard... unless I set a breakpoint in the debugger.

If I set a breakpoint on line 604, for example "mKeyboard.active = true;" and run it in the (VS) debugger then the keyboard works correctly every time.  Seems like it could be a Unity bug.
Title: Re: 3.6.9 build error on WindowsStoreApps
Post by: ArenMook on August 13, 2014, 07:42:57 AM
Sounds like that line needs to be wrapped in #if !NETFX_CORE

@citizen12: That sounds like a different issue and does indeed sound like something on Unity's end...