This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

版本控制

Version Control Systems or VCS (Git, SVN, Perforce, Mercurial, Bazaar, CVS, TFS, etc.) are used to manage changes to code and data, and enable teams to coordinate their development efforts. To make tracking of changes efficient and reduce the amount of disk space required, you should know which files must be tracked by the VCS and which can be ignored.版本控制系统或 VCS(Git, SVN, Perforce, Mercurial, Bazaar, CVS, TFS 等)用于管理代码和数据的更改,并使团队能够协调他们的开发工作。为了有效地跟踪更改并减少所需的磁盘空间量,您应该知道 VCS 必须跟踪哪些文件以及可以忽略哪些文件。

注意
UNIGINE has SVN Plugin that is designed to simplify work with the version control system (SVN) and track all file changes performed in UNIGINE Editor.UNIGINE有 SVN Plugin,旨在简化与版本控制系统(SVN)的工作,并跟踪在UNIGINE编辑器中执行的所有文件更改。

Ignore List忽略列表#

In any project there are files and folders that are not subject to version control. These can be files created by the compiler, *.obj, *.tlog, or an output folder used to store binary executables.在任何项目中都有不受版本控制的文件和文件夹。这些可以是编译器创建的文件、*.obj*.tlog 或用于存储二进制可执行文件的输出文件夹。

The following files and folders in you project's root can be ignored, as they are generated automatically on your disk:可以忽略项目根目录中的以下文件和文件夹,因为它们是在您的磁盘上自动生成的:

Common ignore list for every API and IDE每个 API 和 IDE 的通用忽略列表#

  • .thumbnails
  • bin
    注意
    在更新引擎版本或在 SDK 浏览器中重新配置项目之前将此文件夹添加到版本控制中,以向所有开发人员提供更新后的 bin
  • data/.thumbnails
  • data/microprofile_dump_html
  • junk
  • obj
  • source/x64
  • CMakeCache.txt
  • source/**/*.obj
  • unigine_editor.cfg
  • *.cache
  • *.modified
  • *.tlog
.gitignore
.thumbnails
bin
data/.thumbnails
data/microprofile_dump_html
junk
obj
source/x64
CMakeCache.txt
source/**/*.obj
unigine_editor.cfg
*.cache
*.modified
*.tlog

Additional ignore list for C++ (CMake) projectsC++ (CMake) 项目的附加忽略列表#

Add these entries to the common .gitignore specified above when developing projects based on C++ (CMake).将这些条目添加到常见的基于C++ (CMake)开发项目时,上面指定.gitignore

  • build-*
  • CMakeFiles
  • CMakeScripts
  • CMakeCache.txt
  • cmake_install.cmake
  • CMakeUserPresets.json
  • compile_commands.json
  • CTestTestfile.cmake
.gitignore
build-*
CMakeFiles
CMakeScripts
CMakeCache.txt
cmake_install.cmake
CMakeUserPresets.json
compile_commands.json
CTestTestfile.cmake

Additional ignore list for C++ (Visual Studio 2015+) projectsC++ (Visual Studio 2015+) 项目的附加忽略列表#

Add these entries to the common .gitignore specified above when developing projects based on C++ (Visual Studio 2015+).将这些条目添加到常见的.gitignore 在开发基于 C++ (Visual Studio 2015+) 的项目时指定。

  • .vs
  • *.vcxproj.user
  • *.VC.db
  • *.opendb
  • *.opensdf
  • *.pro.user
  • *.sdf
  • *.suo
.gitignore
.vs
*.vcxproj.user
*.VC.db
*.opendb
*.opensdf
*.pro.user
*.sdf
*.suo

Files and Folders to Add to Version Control添加到版本控制的文件和文件夹#

The following files and folders should be subject to version control:以下文件和文件夹应受版本控制:

  • data folder with all its contents data包含所有内容的文件夹

    注意
    If you do not want to share the editor and application settings with other team members, add the following configuration files to .gitignore:
    • data/configs/unigine.user
    • data/configs/default.user
    • data/.editor2/*
    如果您不想与其他团队成员共享编辑器和应用程序设置,请将以下配置文件添加到 .gitignore
    • data/configs/unigine.user
    • data/configs/default.user
    • data/.editor2/*

    This folder also contains runtime files (data/.runtimes) that should be committed. However, if you occasionally fail to commit runtimes, the runtimes validation process will run when UNIGINE Editor is started, and the missing/outdated runtimes are added/updated. The runtime validation is also performed on adding a new mount.该文件夹还包含应该提交的运行时文件(data/.runtimes)。然而,如果你偶尔提交运行时失败,运行时验证过程将在UNIGINE编辑器启动时运行,丢失/过时的运行时将被添加/更新。在添加新挂载时也执行运行时验证。

  • source folder contents except for the elements mentioned above source 文件夹内容,上述元素除外

    注意
    This folder is created only for projects that use C++ or C# API.此文件夹仅为使用 C++ 或 C# API 的项目创建。
  • *.cache files containing compiled shader cache *.cache包含已编译着色器缓存的文件

    注意
    When team members develop a project using different GPUs or/and driver’s version for their machine configuration, it is better to add the shader cache files to .gitignore since these file will be recompiled by an end developer’s computer.当团队成员为他们的机器配置使用不同的 GPU 或/和驱动程序版本开发项目时,最好将着色器缓存文件添加到 .gitignore,因为这些文件将由最终开发人员的计算机重新编译。
  • *.project file (and *.csproj for C# projects) *.project 文件(和 *.csproj 用于 C# 项目)

Other Notices其他的通知#

This chapter contains recommendations based on the user experience.本章介绍基于用户体验的建议。

PerforcePerforce#

  • Set the Allwrite attribute in Perforce Workspace (the Advanced tab). It's disabled by default, which may cause issues with SDK Browser and *.project file.Perforce Workspace (Advanced选项卡)中设置Allwrite属性。默认是禁用的,这可能会导致SDK浏览器和*.project文件的问题。
  • Checking out and locking a file does not prevent other users from modifying it, since that's only a Perforce abstraction.签出和锁定文件并不会阻止其他用户修改它,因为这只是一个Perforce抽象。
最新更新: 2023-08-18
Build: ()