Let's walk through the process of generating a new item for this recipe:
- From the Project tab, right-click on the Assets folder and select Show in Explorer. You should see your project folder. Then create a text file by right-clicking and selecting New | Text Document:
- Rename the file to MyCGInclude and replace the .txt file extension with .cginc:
- Windows will give you a warning message saying that the File may become unusable, but it will still work.
- Import this new .cginc file into your Unity project and let it compile. ...