Photon Fusion 2.1.1

Il2CppSetOptionAttribute Class Reference

Use this attribute on an assembly, struct, class, method, or property to inform the IL2CPP code conversion utility to override the global setting for one of a few different runtime checks. More...

Detailed Description

Use this attribute on an assembly, struct, class, method, or property to inform the IL2CPP code conversion utility to override the global setting for one of a few different runtime checks.

Example:

[Il2CppSetOption(Option.NullChecks, false)]
public static string MethodWithNullChecksDisabled()
{
    var tmp = new Object();
    return tmp.ToString();
}