Documentation copyright

Hello. I created some tutorials on unreal engine, using the official docentation of the software. Is that legal? I used knowlede for example in material editor guide and created videos based on them and sold those videos. Is that legal? Thanks