Skip to content

Instantly share code, notes, and snippets.

View HDNua's full-sized avatar

HDNua HDNua

View GitHub Profile
@HDNua
HDNua / Debug.cs
Created October 16, 2021 06:12 — forked from kimsama/Debug.cs
It overrides UnityEngine.Debug to mute debug messages completely on a platform-specific basis. [Edit] Added isDebugBuild property.
//#if UNITY_EDITOR
//#define DEBUG
//#endif
using UnityEngine;
using System.Collections;
using System;
using System.IO;
using System.Text.RegularExpressions;
using UnityEngineInternal;