- lomoonmoonbird
- Posts: 30
- Joined:
Game Menu compiled error on Android
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:
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:
Am i missing something, thanksAssets/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
-
sfernandez
Site Admin
- Posts: 3184
- Joined:
Re: Game Menu compiled error on Android
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 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:
Code: Select all
#if !UNITY_EDITOR && !UNITY_STANDALONE && !UNITY_ANDROID && !UNITY_IOS
Re: Game Menu compiled error on Android
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.
NoesisGUI v1.1 is quite old, it is going to be deprecated very soon.
- lomoonmoonbird
- Posts: 30
- Joined:
Re: Game Menu compiled error on Android
Hi
Thanks for your mention, I have forwarded to version 1.2.5, Thanks.
Best Regards.
Thanks for your mention, I have forwarded to version 1.2.5, Thanks.
Best Regards.
Re: Game Menu compiled error on Android
Marking this as solved because we cannot guarantee that our samples work with old versions of noesisGUI.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 4 guests