Created
May 14, 2026 21:46
-
-
Save CSEliot/1d43856f8183d11a26a02a47d27eb245 to your computer and use it in GitHub Desktop.
How to simply fire editor code (independent of PlayMode) to support your development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Sandbox; | |
| public sealed class FireCode | |
| { | |
| [EditorEvent.Frame] | |
| public static void OnEnterPlayMode() | |
| { | |
| Log.Info("This is executed PER FRAME"); | |
| if (Game.IsPlaying) | |
| { | |
| Log.Info("CAN U FEEL IT NOW MR CRABS"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment