Skip to content

Instantly share code, notes, and snippets.

@Hertzole
Hertzole / DebugRuntimeConsole.cs
Last active July 6, 2023 09:04
A console for Unity runtime that shows all console messages (Debug.Log, exceptions, etc)
using System.Collections.Generic;
using System.IO;
using System.Text;
using UnityEngine;
public class DebugRuntimeConsole : MonoBehaviour
{
/// <summary>
/// A struct to hold all the info about a debug message.
/// </summary>
@Hertzole
Hertzole / SceneObject.cs
Last active May 4, 2024 13:04
Unity scene object to easily assign scenes in the inspector.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[System.Serializable]
public class SceneObject
{
[SerializeField]
private string m_SceneName;