Answer the question
In order to leave comments, you need to log in
How to work with the registry in Unity3d?
Good evening. Actually the problem when working with the registry in Unity3d
System.NotImplementedException: The requested feature is not implemented.
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, RegistryKeyPermissionCheck permissionCheck) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:452
at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,Microsoft.Win32.RegistryKeyPermissionCheck)
at RegZ.RegFind (Microsoft.Win32.RegistryKey key, System.String find) [0x000b9] in E:\Работа\Autorun\Unity Autorun\Unity Autorun\Assets\Scripts\RegZ.cs:40
Answer the question
In order to leave comments, you need to log in
Well, it's a cross-platform, why the registry? It is only available in Windows.
There are PlayerPrefs.
You need to look at the documentation not for .Net, but for Mono. Mono is not completely analogous to dotnet.
According to this page , Microsoft.Win32 was supported in at least the fourth branch. If my memory serves me, something was cut out in the fifth version, maybe the registry got under a hot hand. It may also be that in your project settings api compatibility level is set to .NET 2.0 Subset, check. In general, if you wish, you can always put the Microsoft dlls in the Plugins folder and work with them, this is how I drew Windows forms.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question