Skip to content

Instantly share code, notes, and snippets.

@cfazilleau
cfazilleau / UnrealSimulatorEditor.cs
Last active July 15, 2022 19:09
Simulate Unreal engine in Unity (just shows the "LIGHTING NEEDS TO BE REBUILT" in the top left corner of the viewport.) based on an original idea by Kenney (https://github.com/KenneyNL/Unreal-Simulator-for-Unity) but this time, it is just a 23 lines editor script, and not a full package with prefabs, assets, etc...
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class UnrealSimulator : Editor
{
private static GUIStyle style = null;
private const string text = "LIGHTING NEEDS TO BE REBUILT (4 unbuilt object(s))";
private const string subtext = "'DisableAllScreenMessages' to suppress";