lomoonmoonbird
Topic Author
Posts: 30
Joined: 15 Mar 2016, 04:41

Game Menu compiled error on Android

18 Mar 2016, 09:29

Hi,
I tried to compile Game Menu Demo from viewtopic.php?f=12&t=478 this site, I used NoesisGUI 1.1 , but some errors thrown:
Assets/MenuDemo/OptionSelector.xaml.cs(46,28): error CS0102: The type `MenuDemo.OptionSelector' already contains a definition for `SelectedIndex'
Assets/MenuDemo/OptionSelector.xaml.cs(96,59): error CS0102: The type `MenuDemo.OptionSelector' already contains a definition for `SelectedOptionProperty'
Assets/MenuDemo/OptionSelector.xaml.cs(98,34): error CS0102: The type `MenuDemo.OptionSelector' already contains a definition for `SelectedOption'
Assets/MenuDemo/SettingsMenu.cs(8,18): error CS0260: Missing partial modifier on declaration of type `MenuDemo.SettingsMenu'. Another partial declaration of this type exists
Assets/MenuDemo/StartMenu.cs(8,18): error CS0260: Missing partial modifier on declaration of type `MenuDemo.StartMenu'. Another partial declaration of this type exists
Error building Player because scripts had compiler errors
Am i missing something, thanks
 
User avatar
sfernandez
Site Admin
Posts: 2984
Joined: 22 Dec 2011, 19:20

Re: Game Menu compiled error on Android

18 Mar 2016, 13:14

Hi,

If you are using NoesisGUI 1.1, just to make sure, have you downloaded from the link available for 1.1 version? http://www.noesisengine.com/NoesisGUI/MenuDemo.zip

Which version of Unity are you working on? Because NoesisGUI 1.1 is not compatible with Unity 5.

The scripts with filenames ending in .xaml.cs shouldn't be compiled by Unity, and taking a look at them I see that UNITY_ANDROID doesn't appear in the #if section.

It should compile if you change the first line of those scripts to:
#if !UNITY_EDITOR && !UNITY_STANDALONE && !UNITY_ANDROID && !UNITY_IOS
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Game Menu compiled error on Android

18 Mar 2016, 15:51

Please, check your email. We have sent you a 1.2 version.

NoesisGUI v1.1 is quite old, it is going to be deprecated very soon.
 
lomoonmoonbird
Topic Author
Posts: 30
Joined: 15 Mar 2016, 04:41

Re: Game Menu compiled error on Android

22 Mar 2016, 04:30

Hi

Thanks for your mention, I have forwarded to version 1.2.5, Thanks.

Best Regards.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Game Menu compiled error on Android

29 Mar 2016, 18:19

Marking this as solved because we cannot guarantee that our samples work with old versions of noesisGUI.

Who is online

Users browsing this forum: Bing [Bot] and 9 guests