How do I load a Camera into a prefab that isn't in the scene?

When inspecting the prefab object (that isnt in the scene), I’m trying to add a Main Camera to the Script component, but there is no option to add it.

I know you can add the camera when your object is in the scene, but how do I add it when the object isn’t in the scene? Is it possible to do in the script?

Thanks

You can use the find function.

camera = GameObject.find(“CameraNameGoesHere”);