> This page provides detailed instructions for subscribers to download the source code for Unreal Engine (UE) from the Unreal Engine GitHub repository, and to get started working with the code.
The UE4/UE5 source code is only available under license, but the bar to acquire said license couldn't possibly be lower. You just connect a GitHub account, click through a EULA, and automatically get access to almost* the entire source code for free.
* The NDA'ed console bits are hidden of course but all the PC code is there. Not just release snapshots either, you can see all of Epics commits in real time.
Something as abstract as "techniques" is in general not copyrightable. Worst case, there is a software patent but that is not something that is granted automatically.