Awake() not called on script referenced directly from Project window

I have a GameObject called TestObject in the HIERARCHY. It has a SimpleScript component.

public class SimpleScript : MonoBehaviour
{
    public GameScreen activeScreen;

    void Start()
    {
        activeScreen.Test();
    }
}

The GameScreen component looks like this:

public class GameScreen : MonoBehaviour
{
    void Awake()
    {
        print("Awake called.");
    }

    public void Test()
    {
        print("Test Successful.");
    }
}

In my PROJECT view, I have a prefab called SplashScreen which has a GameScreen added to it as a component. There’s nothing else on it.

I drag the SplashScreen prefab onto the inspector for the TestObject’s activeScreen field. When I run the game, the words “Test Successful” are printed to the output window, but the words “Awake called” are not.

It seems like a prefab dragged from the PROJECT view doesn’t have Awake() called on it. But if I drag it to the HIERARCHY view first to create an instance of it, and then drag that instance onto the TestObject’s activeScreen field, it works fine.

Is there some way to make Awake() call on the prefab dragged from the PROJECT view?

The system is behaving as designed.

When you dragged it from the project window onto a variable in the inspector you don’t have an instance of it - you have the prefab reference (which obviously shouldn’t wake up). You are expected to make an instance of that item to use it.

When you create an instance out of the prefab, the instance will have Awake() called on it.