Hello,
my name is Daniel and I have been using Unity for some time now.
In order to make the work easier for me and others, I have made an editor. where you can view, modify, delete and create PlayerPrefs variables.
Here's the link so you know what I mean:
https://assetstore.unity.com/packages/tools/utilities/pmprefs-125112
Now I want to build my current project for iOS.
And here is my real problem:
I use the namespace "Microsoft.Win32" in my editor under Windows
With that I access the Regirstry and read out the variables there:
`RegistryKey key = Registry.CurrentUser.OpenSubKey (subKey);`
But when I switch to iOS in the Build Settings I get 3 errors in the console:
`- error CS0246: The type or namespace name 'RegistryKey' could not be found (are you missing a directive or an assembly reference?)`
`- error CS0103: The name 'Registry' does not exist in the current context`
`- error CS1579: foreach statement can not operate on variables of type '?' because '?' does not contain a public instance definition for 'GetEnumerator'`
They are all related to the Regestry.
The strange thing is that I'm still in Windows anyway ...
And by the way, the editor works.
So why the errors, if it anyway anyway only executed in the editor?
Best regards, Daniel
↧