Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.allowUnsafeCode

Switch to Manual
public static bool allowUnsafeCode;

Description

Allow 'unsafe' C# code code to be compiled for predefined assemblies.

Setting this to true will pass /unsafe to the C# compiler when compiling predefined assemblies, e.g. Assembly-CSharp.dll, etc.

Did you find this page useful? Please give it a rating: