InitializeOnLoad Attribute not running?

Hello Comm-Unity,

I am working on a quick auto save script (My Computer keeps crashing), but it doesn’t seem to be running properly. Is there a reason why this isn’t printing in the Console on Editor (5.6.3) startup?

using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
using UnityEditor;

[InitializeOnLoad]
public class Builder
{
    static Builder()
    {
        Debug.Log("Running...");
    }
}

Thanks for your help!

  • Tiger273

Same issue