3 ms·
A couple extra points to complement the article: - Boo support is all but dropped, so avoid going with that. - The JavaScript variant is not exactly what is i
by AdieuToLogic 9y ago
A couple extra points to complement the article:
- Boo support is all but dropped, so avoid going with that.
- The JavaScript variant is not exactly what is in a browser.
- For C# MonoBehaviours, the class name must match the file name (without extension) in order for Unity Editor to see it. Namespaces are both supported and not displayed when adding a component.
- The Editor identifies file relationships by the GUID assigned in "meta files" if "Visable Meta Files" is chosen in the "Version Control" entry in the project settings. All files imported will then have another created with a suffix of ".meta".
- Selecting an "Asset Serialization" mode of "Force Text" will cause Unity to use YAML for things such as scenes, prefabs, meta files, etc. This can make using Git much nicer as well as enable use of text processing tools (such as grep or ack).
- When importing assets from the Asset Store, always review what files the package wants to import! Many will ship resources such as Standard Assets which can be outdated and/or cause conflicts.
- The built-in package management will only update or add files from a package. This many times leaves stale files lying around which can cause problems.
EDIT: If using text (YAML) serialization and Git, trying to merge conflicts in scenes (.unity) or prefabs (.prefab) will almost certainly end badly. Better to coordinate changes between people through communication, doing a "use mine or use theirs" conflict resolution strategy when people step on each other's work.
EDIT-2: Here are three utility assets which I have found to be invaluable (all are free):
- Vexe Framework: https://github.com/vexe/VFW https://github.com/vexe/VFW
- LINQ to GameObject: https://www.assetstore.unity3d.com/en/#!/content/24256 https://www.assetstore.unity3d.com/en/#!/content/24256
- Unity Test Tools: https://www.assetstore.unity3d.com/en/#!/content/13802 https://www.assetstore.unity3d.com/en/#!/content/13802