UnityCsReference README

The project's README from github.com/Unity-Technologies/UnityCsReference. As one markdown file: README.md.

Unity 6000.7.0a6 C# reference source code

The C# part of the Unity engine and editor source code. May be used for reference purposes only.

For terms of use, see https://unity3d.com/legal/licenses/Unity_Reference_Only_License

The repository includes third-party code subject to third-party notices.

The terms of use do not permit you to modify or redistribute the C# code (in either source or binary form). If you want to modify Unity's source code (C# and C++), contact Unity sales for a commercial source code license: https://store.unity.com/contact?type=source-code

We do not take pull requests at this time (sorry). But if you find something that looks like a bug, we'd appreciate it if you'd file it using the Unity Bug Reporter. For more information, see: https://support.unity.com/hc/en-us/articles/206336985-How-do-I-submit-a-bug-report

Unless expressly provided otherwise, the software under this license is made available strictly on an "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions.

The C# solution is in Projects/CSharp/UnityReferenceSource.sln

The folder and file layout of the reference source matches the Unity source tree layout; it can and will change between different Unity versions.

UnityCsReference (Unity-Technologies/UnityCsReference)

Searching Database…

这是什么?这是 Unity 游戏引擎和编辑器的 C# 部分源代码,由 Unity Technologies 发布供开发者阅读。它只是引擎内部实现的一份参考副本,不是可以安装运行的产品。
这是能用来开发的东西,还是只能阅读的代码?只能阅读。这是一个仅供参考的源码目录——没有可以构建、安装或发布的东西;它的价值在于让你看到引擎和编辑器内部到底是怎么运作的。
那我该怎么浏览它?克隆仓库,然后在任意 C# IDE 中打开位于 Projects/CSharp/UnityReferenceSource.sln 的 C# 解决方案。文件夹结构和 Unity 内部源码树一致,很容易导航。
如果我在代码里发现一个 bug,可以直接提交修复吗?不行——不接受拉取请求。真正的 bug 应该改用 Unity Bug Reporter 来提交。
我可以把里面的代码复制到我自己的项目里吗?不可以。使用条款只允许参考阅读,禁止以源码或二进制形式修改或再分发这些 C# 代码;要修改 Unity 的源码,需要向 Unity 销售部门购买商业源码许可证。
整个引擎都是用 C# 写的吗?不是——这个仓库只包含 C# 部分。Unity 的原生核心是 C++,并不在这里公开;完整源码的获取属于商业事务,由 Unity 销售部门负责。
仓库里的代码都是 Unity 自己的吗?不是。仓库里还包含第三方代码,这些代码受单独的第三方声明约束。
既然不能修改,为什么还要公开源码?是为了让开发者能够研究 Unity 引擎和编辑器实际上是怎么工作的。用途被刻意限定为参考,条款比开源项目更严格。
Size
99 MB
Stars
13K
Updated
CommitOct 15
Age
8y
Commits · 90 Days