playMaker

Author Topic: UGui proxy not compatible with wsa .net  (Read 8226 times)

Sixpolys

  • Playmaker Newbie
  • *
  • Posts: 1
UGui proxy not compatible with wsa .net
« on: February 17, 2017, 11:20:08 AM »
I imported the UGui proxy and could not build for WSA HoloLens anymore.
the error concerns this file:
/Assets/PlayMaker Utils/PlayMakerUtils_FsmVar.cs

Error:
"'Type' does not contain a definition for 'BaseType'"

Line 484
Code: [Select]
        }else if(valueType.BaseType == typeof(System.Enum) ){

can you replace it with IsEnum()?
Code: [Select]
       
        }else if(valueType.IsEnum() ){

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #1 on: February 19, 2017, 01:35:17 PM »
I am getting the same issue. As soon as I install the UGui Proxy addon I get the same error.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #2 on: February 20, 2017, 01:20:22 AM »
Hi,

Crap...

can you try this:

 }else if(valueType.GetTypeInfo().BaseType == typeof(System.Enum) ){

Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #3 on: February 20, 2017, 07:54:31 AM »
I commented out line 484. added your code which is 485. Get the following build error.

Assets\PlayMaker Utils\PlayMakerUtils_FsmVar.cs(485,29): error CS1061: 'Type' does not contain a definition for 'GetTypeInfo' and no extension method 'GetTypeInfo' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #4 on: February 21, 2017, 03:16:00 AM »
Hi,

 Can you try to deploy using full .net ?

Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #5 on: February 21, 2017, 07:30:36 AM »
Not sure what you mean by full .net

Edit: Found this similar post in the MS Hololens forum.
« Last Edit: February 21, 2017, 08:01:17 AM by Vern_S »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #6 on: February 21, 2017, 08:11:15 AM »
Hi,

 uhm, I see, yes this post is helpfull.

 This is so amazing to me that Microsoft is failing so badly to provide a consistent experience across .net and its devices. .net is a Microsoft product and yet they just randomly remove features from it... makes it very difficult.

 I'll investigate, I think should do:

http://www.softanya.com/wordpress_en/unity-reflection-helper/

 I'll let you know how I progress on this.

 Bye,

 Jean
 Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #7 on: February 21, 2017, 08:27:52 AM »
I'n not a coder, more like a code hacker, but I guess some things were tweaked or removed in .NET core and the reflection helper is adjusting certain methods to work, correct?

Any help is most appreciated Jean. I have a Physics Lab app in VR I am trying to port to the Holoens and have a demonstration scheduled in a couple of weeks. To a degree I can Set or Get Properties of ugui elements and I have a script to detect button press and fsm.SendEvent to send the events but it's getting difficult to swap everything out.

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #8 on: February 22, 2017, 01:08:00 PM »
Hi Jean,

Have you had any progress? I found the following link in the Unity Docs if this helps.

https://docs.unity3d.com/Manual/windowsstore-missingtypes.html

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #9 on: February 23, 2017, 01:57:29 AM »
Hi,

I am on it, but it's such a pain... I hope to find a way to leverage all of this in a nice way so that packages works across the board.

Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #10 on: February 23, 2017, 07:03:21 AM »
Thank you very much Jean. Let me know if there is any way I can help. I have two hololens here and a test project ready to go so in case you need some testing done.

Thanks again,
Vern

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #11 on: February 24, 2017, 03:01:41 AM »
Hi,

 ok, turns out there is a more elegant way and it's cross platform:  replace with :

}else if(value is System.Enum){


let me know, my tests are all green and I can compile and it so far seems to not create any problems in other areas.

 If that works on your end, I'll push the changes.

 Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #12 on: February 24, 2017, 08:43:56 AM »
It will build the project from Unity but when I build it in visual studio I get a number of errors. Attached is a screenshot of the errors.

I have also attached a screenshot of my edit to PlayMakerUtils_FsmVar.cs

« Last Edit: February 24, 2017, 08:52:12 AM by Vern_S »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UGui proxy not compatible with wsa .net
« Reply #13 on: February 24, 2017, 10:49:39 AM »
Hi,

 that's already not related, I can publish fine for Windows Store, so it looks like a problem with the project build setup, not PlayMaker or this script.

 can you try to create an empty project with just a simple cube, nothing, no playmaker, not nothing, and then publish and see if it works, then you bring PlayMaker you test and then you bring uGui proxy and test ( with the mod).

 Bye,

 Jean

Vern_S

  • Playmaker Newbie
  • *
  • Posts: 32
Re: UGui proxy not compatible with wsa .net
« Reply #14 on: February 24, 2017, 02:27:31 PM »
I did 3 tests.

Test A, Unity set up to publish to Hololens. See TestA screenshot. Builds to Hololens without issue. Windows 10 Universal and D3D. Virtual Reality Supported and Hololens added.

Test B, Add Playmaker 1.3. Builds to Hololens without issue.

Test C, downloaded uGuiProxyFull.unitypackage and installed. Modified line 484 of PlayMakerUtils_FsmVar.cs . See ScriptMod scrfeenshot.  Builds from Unity without issue. Building to Hololens I get the same errors as previous. See attached Unity and VS screenshots.


« Last Edit: February 24, 2017, 02:31:08 PM by Vern_S »