Version: 2017.3
Universal Windows Platform: Debugging on IL2CPP Scripting Backend
Universal Windows Platform: Ejemplos

FAQ (Preguntas más frecuentes)

Clases y funciones no soportadas cuando utilice un Backend de scripting .NET

Cómo crear un paquete Appx de Visual Studio ?

  • After building the project from Unity Editor open it with Visual Studio
  • En el solution explorer, haga click derecho en el proyecto
  • Store -> Create App Packages
  • Usted quiere construir paquetes para subirlos a la Windows Store? Escoja No, luego NExt
  • Escoja la plataforma apropiada, por ejemplo., ARM Release
  • No incluya símbolos de archivos públicos, esto hará el paquete más pequeño
  • Cree
  • Ubique la carpeta que está nombrada con algo como YourApp_1.0.0.0_ARM_Test, revise que tenga el archivo Add-AppDevPackage.ps1
  • Copie el contenido de la carpeta a la maquina destino, luego en la maquina destino haga click derecho en Add-AppDevPackage.ps1 -> Run with PowerShell
  • Siga los pasos, usted podría necesitar una conexión a internet para instalar la Developper License, esto requiere que usted tenga una cuenta de Microsoft
  • Si todo está bien, su app debería aparecer en el menú de inicio

Cómo instalar un archivo appx en su maquina?

  • Abra Windows PowerShell del menú inicial, navegue su archivo appx, ejecute Add-AppxPackage <yourappx>.appx, si la appx fue firmada, será instalada en su maquina. Tenga en cuenta: si usted está instalando el archivo appx nuevamente, usted tendrá que des-instalar las anteriores, simplemente haga click derecho en el icono, y haga click en Uninstall.

Estoy obteniendo un error “DEP0600: incorrect parameter” mientras despliego una aplicación.

  • Algo está mal con su certificado, intente crear uno nuevo al hacer click en Package.appxmanifest -> Packaging -> Choose Certificate -> Configure Certificate -> Create Test Certificate

Cómo utilizar el depurador gráfico de Visual Studio en ARM?

Cómo desplegar un proyecto en una tableta de PC?

Cómo escojo qué compilador utilizar para mi scripts en C#?

Under publishing settings on Universal Windows Platform player settings, there’s a drop down menu called “Compilation overrides”. There are 3 settings:

1. Ninguno. Todos los scripts en C# serán compilados con el compilador de Mono C#;
2. Utilice Net Core parcialmente. Los script que están en carpeta "Assets/Plugins", "Assets/Standard Assets" y "Assets/Pro Standard Assets" serán compiladas con el compilador Mono C# , mientras que el resto será compilado con el compilador Microsoft C#.
3. Usar Net Core. Todos los scripts se compilarán con el compilador de Microsoft C#.

Both compilers have their ups and downs. Compiling scripts with the Mono C# compiler will allow them to be referenced by JavaScript scripts, which, for example, is needed for Angry Bots (hence you have to set it to none). However, using the Microsoft C# compiler will allow you to use Microsoft specific APIs without the need for plugins - just wrap the code in #if ENABLE_WINMD_SUPPORT/#endif, and it will compile and work just fine.

Obtener más información acerca del fallo del Windows App Certification Kit (WACK)?

You can find a log in <user>\AppData\Local\Microsoft\AppCertKit which might contain additional information about the failure.

Help! There’s too many defines! Which are defined when?

No se preocupe. Aquí está todos:

UNITY_WINRT Defined on all scripts
UNITY_WSA Defined on all scripts
UNITY_WINRT_10_0 Defined on all scripts
UNITY_WSA_10_0 Defined on all scripts
ENABLE_DOTNET Defined on all scripts when using .NET scripting backend
ENABLE_IL2CPP Defined on all scripts when using IL2CPP scripting backend
NETFX_CORE Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend
WINDOWS_UWP Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend or IL2CPP scripting backend with .NET 4.6 compatibility level
ENABLE_WINMD_SUPPORT Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend or IL2CPP scripting backend with .NET 4.6 compatibility level

Ver también platform dependent compilation.

Breakpoints en proyectos Assembly-CSharp-* generados que no son golpeados.

There could be couple of reasons:

  • This may occur because of the JIT optimization on module load. In Visual Studio, go to Tools > Options > Debugging > General and uncheck Suppress JIT optimization on module load.
  • Visual Studio doesn’t consider Assembly-CSharp-* as your code. Go to Tools > Options > Debugging > General and uncheck Enable Just My Code. This tells Visual Studio that you want to debug the Assembly-CSharp-* projects.

• 2017–05–16 Page amended with no editorial review

Universal Windows Platform: Debugging on IL2CPP Scripting Backend
Universal Windows Platform: Ejemplos