Skip to content

Instantly share code, notes, and snippets.

@CSEliot
CSEliot / EditorProjectCode.cs
Created May 14, 2026 21:46
How to simply fire editor code (independent of PlayMode) to support your development.
using Sandbox;
public sealed class FireCode
{
[EditorEvent.Frame]
public static void OnEnterPlayMode()
{
Log.Info("This is executed PER FRAME");
if (Game.IsPlaying)