Unity-Technologies / Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
Other
1.38k stars 156 forks source link

Warning fix for Unity.Mathematics.CodeGen scripts #218

Closed kevinmv closed 2 years ago

kevinmv commented 2 years ago

The editor will attempt to load the Unity.Mathematics.Codegen scripts in projects using com.unity.mathematics. When it does it'll see there is no asmdef for the scripts nor are the scripts under the Assets directory. This results in the editor generating the warning such as Script 'com.unity.mathematics/Unity.Mathematics.CodeGen/Program.cs' will not be compiled because it exists outside the Assets folder and does not to belong to any assembly definition file.

To avoid this warning we move the CodeGen dir to CodeGen~ which the Editor will ignore.

We were git ignoring all suffixed directories previously, so the .gitignore file was updated to allow this directory.