[HELP] UE5 Character spawned from class doesn't hold the same setting as in blueprint

I’m currently spawning the third-person character in my project, where I set the enable custom depth in the third-person character blueprint. But this is not activated on my spawned characters using spawn actor from class.

Does anyone know how to solve this? I’m much appriecated!