[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/EditorUserBuildSettings-explicitDivideByZeroChecks.html [Back]  [Original]

Unity - Scripting API: EditorUserBuildSettings.explicitDivideByZeroChecks
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    EditorUserBuildSettings.explicitDivideByZeroChecks

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    public static bool explicitDivideByZeroChecks;

    Description

    When true, divisions by zero are actively validated in code generated by IL2CPP. When false, they are not.

    This setting is only supported for some closed platforms. On those platforms it's a configurable option in the platform build profile, and more information is available in the relevant platform-specific documentation.

    Important: On the platforms that support this setting, it applies globally to all C# code. It's recommended to use the [Il2CppSetOption] attribute instead, which is supported on all platfoms and allows you to apply the equivalent behavior more restrictively to specific methods, classes, or assemblies. For more information, refer to IL2CPP runtime code checks in the Unity manual.


    Web Proxy Viewer  |  New URL  |  Original Page