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

Git

The VCSIntegration Plugin provides Git integration. It tracks changes made to assets in UnigineEditor and updates their statues in the repository automatically via the Git client.VCSIntegration 插件提供Git集成。 它跟踪对UnigineEditor中的资源所做的更改,并通过Git客户端自动更新存储库中的资源。

注意
Within this article, we will use TortoiseGit as the client for Git. The plugin supports integration with TortoiseGit 2.10 and later.在本文中,我们将使用TortoiseGit作为Git的客户端。 该插件支持与TortoiseGit 2.10及更高版本的集成。

Setting Up Environment
设置环境#

For VCSIntegration Plugin to operate with Git correctly, you should prepare the environment:为了使VCSIntegration 插件正确地与Git一起操作,您应该准备环境:

  1. Make sure git and git-lfs are installed on your computer. If the plugin can't locate a Git executable (git.exe is unavailable), it will provide you with the error message. The same will be displayed in the console. In this case, install the client and proceed with setting up the environment. 确保您的计算机上安装了gitgit-lfs。 如果插件无法找到Git可执行文件(git.exe不可用),它将为您提供错误消息。 同样会显示在控制台中。 在这种情况下,安装客户端并继续设置环境。
  2. Add the path to the git.exe file to the PATH environment variable. You can do that as follows:git.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. By default, it will be C:\Program Files\Git\cmd.在打开的窗口中,单击New,添加路径,然后单击OK。 默认情况下,它将是C:\Program Files\Git\cmd

Now you can configure your project to use the VCSIntegration plugin and allow tracking changes.现在您可以配置您的项目以使用VCSIntegration 插件并允许跟踪更改。

Plugin Operation
插件操作#

Adding New Asset
添加新资源#

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

Renaming Asset
重命名资源#

The user renames an asset from cube.png to sphere.png. The texture asset and its metadata with the new name will show up as Renamed in Git Commit. The previous names of the files will be displayed in the parentheses right after the new names.用户将资源从cube.png重命名为sphere.png。 具有新名称的纹理资源及其元数据将在Git Commit中显示为Renamed。 文件的先前名称将显示在新名称后面的括号中。

The status of the runtime file metadata will be set as Modified.运行时文件元数据的状态将设置为Modified

Moving Asset
移动资源#

The user moves a non-native asset helicopter_simple.fbx from one directory to another. The asset and its metadata added to the new directory will be displayed in Git Commit with the Renamed status. The previous paths to the files will be displayed in the parentheses right after the new paths.用户将非本机资源helicopter_simple.fbx从一个目录移动到另一个目录。 添加到新目录的资源及其元数据将以Renamed状态显示在Git Commit中。 以前的文件路径将显示在新路径后面的括号中。

Deleting Asset
删除资源#

The user deletes a non-native asset helicopter_simple.fbx. The asset, its metadata, and all runtime files with their metadata will have the Deleted status within Git Commit.用户删除非本机资源helicopter_simple.fbx。 资源、其元数据以及所有运行时文件及其元数据的状态将在Git 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 Git Commit. The asset itself remains unchanged.当资源使用新参数重新导入时,其运行时文件和元数据将在Git Commit中具有Modified状态。 资源本身保持不变。

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