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
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Subversion (SVN)

Subversion (SVN) is one of the most frequently used version control systems for content-heavy UNIGINE-based projects. VCSIntegration Plugin provides Subversion integration, which allows tracking changes in the project and processing them.Subversion (SVN)是内容密集型UNIGINE项目中最常用的版本控制系统之一。 VCSIntegration 插件提供Subversion集成,它允许跟踪项目中的更改并处理它们。

All tracked actions go to SVN Commit via the SVN client, where they are assigned the corresponding status. It helps users avoid manual work.所有跟踪的操作都通过SVN客户端转到SVN Commit,在那里它们被分配相应的状态。 它可以帮助用户避免手工工作。

注意
Within this article, we will use TortoiseSVN as the client for Subversion.在本文中,我们将使用TortoiseSVN作为Subversion的客户端。

Setting Up Environment
设置环境#

For VCSIntegration Plugin to operate with Subversion correctly, you should prepare the environment:为了使VCSIntegration 插件能够正确地与Subversion一起运行,您应该准备好环境:

  1. Make sure the Subversion client (in our case, TortoiseSVN) is installed with the command-line tools. If the plugin can't locate a Subversion executable (svn.exe is unavailable), it will provide you with the error message. The same will be displayed in the console. In this case, modify the configuration of your SVN client. For TortoiseSVN, follow the instructions:确保Subversion客户端(在我们的例子中是 TortoiseSVN)与命令行工具一起安装。 如果插件无法找到Subversion可执行文件(svn.exe不可用),它将为您提供错误消息。 同样会显示在控制台中。 在这种情况下,请修改 SVN 客户端的配置。对于 TortoiseSVN,请按照以下说明进行操作:

    1. Run the SVN installer and click Modify.运行SVN安装程序并单击Modify
    2. Click on the command line client tools icon and follow the installation instructions.单击command line client tools图标并按照安装说明进行操作。

    When completed, proceed with setting up the environment.完成后,继续设置环境。

  2. Add the path to the svn.exe file to the PATH environment variable. You can do that as follows:svn.exe文件的路径添加到PATH环境变量中。 您可以这样做:

    1. Type Advanced System Settings in the search bar next to the Start button and click on the matching option.Start按钮旁边的搜索栏中键入Advanced System Settings,然后单击匹配选项。

    2. In the window that opens, click Environment Variables...在打开的窗口中,单击Environment Variables...

    3. Select the system variable PATH from the list and click Edit...从列表中选择系统变量PATH,然后单击Edit...

    4. In the window that opens, click New, add the path, and click OK. For TortoiseSVN, it will be C:\Program Files\TortoiseSVN\bin by default. 在打开的窗口中,单击New,添加路径,然后单击OK。 对于TortoiseSVN,默认为C:\Program Files\TortoiseSVN\bin

Limitations
限制#

In addition to general plugin limitations, there are also specific constraints for tracking changes in projects managed by SVN:除了通用插件限制之外,还存在跟踪SVN管理的项目更改的特定限制:

  • The plugin doesn't process Unicode characters like: "لا أدري不知道боль". Therefore, only use English characters, numbers or space in file and directory names. Using other characters in the file and folder names may cause changing the recursive status to non-versioned. However, this restriction doesn't apply to the file content.该插件不处理Unicode字符,如:"لا أدري不知道боль"。 因此,在文件和目录名称中只能使用英文字符,数字或空格。 在文件和文件夹名称中使用其他字符可能会导致将递归状态更改为non-versioned。 但是,此限制不适用于文件内容。
  • The plugin doesn't use the TortoiseSVN Ignore list - such files still are tracked. Thus be aware that if such files and the directories containing them are changed, they will be added to the SVN Commit list. For example, when a texture is imported to a directory added to the Ignore list, the plugin will process it and mark it with the added status instead of ignoring that texture and mark it with the non-versioned status. Make sure to exclude such files from the commit!该插件不使用TortoiseSVNIgnore list,这样的文件仍然被跟踪。 因此,请注意,如果这些文件和包含它们的目录被更改,它们将被添加到SVN Commit列表中。 例如,当纹理导入到添加到Ignore list的目录时,插件将处理它并使用added状态标记它,而不是忽略该纹理并使用non-versioned状态标记它。 确保从提交中排除此类文件!

Plugin Operation
插件操作#

Adding New Asset
添加新资源#

The user imports a new asset humanoid_run_forward.fbx to the directory. The new FBX asset, its metadata, and all runtime files with their metafiles will be displayed in the SVN Commit. All files will have the added status.用户将一个新的资源humanoid_run_forward.fbx导入到目录中。 新的FBX资源、其元数据以及所有运行时文件及其元文件都将显示在SVN Commit中。 所有文件都将具有added状态。

Renaming Asset
重命名资源#

The user renames an asset from PNG.png to ddd.png. The texture asset and its metadata with the old name will show up as deleted in SVN Commit, the same files with the new name will be displayed as added(+).用户将资源从PNG.png重命名为ddd.png。 具有旧名称的纹理资源及其元数据将在SVN Commit中显示为deleted,具有新名称的相同文件将显示为added(+)

Moving Asset
移动资源#

The user moves a non-native asset import_materials.fbx from one directory to another. The asset and its metadata will be displayed in SVN Commit: the files from the old directory will have the deleted status, and those added to the new directory will be marked as added(+).用户将非本机资源import_materials.fbx从一个目录移动到另一个目录。 资源及其元数据将显示在SVN Commit中:旧目录中的文件将具有deleted状态,添加到新目录中的文件将标记为added(+)

Deleting Asset
删除资源#

The user deletes a non-native asset humanoid_run_forward.fbx. The asset, its metadata, and all runtime files with their metadata will have the deleted status within SVN Commit.用户删除非本机资源humanoid_run_forward.fbx。 资源、其元数据以及所有运行时文件及其元数据的状态将在SVN Commit内具有deleted状态。

Changing Asset Import Parameters
更改资源导入参数#

When an asset is re-imported with new parameters, its runtime files and metadata will have the modified status in SVN Commit. The asset itself remains unchanged.当资源使用新参数重新导入时,其运行时文件和元数据将在SVN Commit中具有modified状态。 资源本身保持不变。

最新更新: 2024-08-16
Build: ()