sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.11k stars 1.11k forks source link

Entitas creates a "[username].userproperties file" when running #996

Closed haltingstate closed 2 years ago

haltingstate commented 2 years ago

When running the code generator from unity an empty file is created.

-[username].userproperties

This should be fixed. The file is useless, not used anywhere and can be committed into git by accident. The file depends on username the person is login as.

sschmid commented 2 years ago

Hi @haltingstate This is intentional behaviour based on the Preferences class. . userproperties should be added to .gitignore

The idea of user properties is that user setups might be different and you can overwrite keys based on your system. You can also reference keys from the user properties in your main properties, e.g.:

Unity.Path = /Applications/Unity/Hub/Editor
Unity.App = ${Unity.Path}/Unity.app/Contents/MacOS/Unity

If your system is setup differently, you can overwrite Unity.Path in your user properties