Bake Textures in 2.8

Hi everyone, i’m switching from 2.79 to 2.8 and i’m lost. Back in 2.79 i assigned materials to different parts of my mesh and baked them into a diffuse texture to create an ID texture so i can use it after in substance painter.

The thing is; i don’t know how to do that in 2.8 with cycles. Whenever i try to bake it says that the object is not enabled for rendering.

I don’t understand anything, help.

Look in the Outliner & click on the camera icon for that mesh object, then click “bake”