/// <summary> /// Call this when you no longer want to provide a debug string each frame. /// </summary> /// <param name="callback">The callback to stop calling</param> public void UnregisterExternalLogCallback(GetLogLine callback) { if (externalLogs.Contains(callback)) { externalLogs.Remove(callback); } }
/// <summary> /// Call this to register your script to provide a debug string each frame. /// </summary> /// <param name="callback">The delegate to call back</param> public void RegisterExternalLogCallback(GetLogLine callback) { externalLogs.Add(callback); }