查看: 493|回复: 5

[虚幻编辑器手册] 【源代码控制集成 | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
75866
发表于 2016-6-25 12:02:23 | 显示全部楼层 |阅读模式


本页面的内容:

      
概述

Activating Source Control
Activating Source Control via Editor Preferences
Activating Source Control via the Content Browser

Status Icons

Source Control Actions

Checking Out and In

Deactivating Source Control
     概述
Unreal Editor supports source control, allowing teams to coordinate their game development and design efforts, as well as handling version control.

Perforce and SVN are supported by default.
Activating Source Control
You can activate source control in one of two ways:

In the Level Editor's Preferences window.

In the Content Browser.

Activating Source Control via Editor Preferences
You can activate source control via the editor's main Preferences window (Edit > Editor Preferences > Loading  Saving).

【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]




Item
Description

Automatically Checkout on Asset ModificationWhen checked, this will automatically check out any asset that has been modified.Prompt for Checkout on Package ModificationWhen checked, a prompt will appear when you make changes to a source controlled-package, asking if you would like to check out (lock) that package.Add New Files when ModifiedThis will add new files into source control when they are modified.Use Global SettingsUse global source control login settings, rather than per-project.  Changing this will require you to login again.Tool for diff'ing textSpecifies the file path to the tool to be used for diff'ing text files.
Activating Source Control via the Content Browser
You can also activate Source Control in the Content Browser. To do so, right-click any asset or folder. At the bottom of the context menu, in the Source Control section, click Connect to Source Control.

【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]



This will open a log-in screen where you can select your source-control system and enter any appropriate settings and other information.

【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]



Enter the appropriate information, and click Accept Settings.  After source control is activated, the display of the assets in the Content Browser will change to reflect their source-control status, and some source-control options will be included on the right-click context menu.
Status Icons
The Content Browser will display special icons on the upper-right corner of assets to give the source control status. Below are the available icons and their meanings:





【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]


【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]


【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]


【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]


【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]



Checked out by youChecked out by another userMarked for addNot in depotNewer version of file exists in source controlSource Control Actions
While source control is active, the following context menu will be available when you right-click on an asset:

【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]




Item
Description

Check OutChecks out (locks) the asset for editing. This prevents other users from editing the asset at the same time.RefreshRefreshes the source control status of the asset.HistoryGives a revision history list of the selected asset, allowing you to see previous edits.Diff Against DepotThis allows you to check the asset against the version currently stored in the source control depot.Checking Out and In
To check out an asset for editing, simply right-click it and choose Check Out. However, when checking back in, there is a certain protocol which must be followed.

Right-click on the asset and choose Check In. A dialog will appear with a required changelist description for the check-in.

Enter a description, which will be added to the asset's revision history.

Click OK when finished.

【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]



A changelist description is required, so the OK button will not be enabled until a description is entered.
Deactivating Source Control
You may find that you want to deactivate source control after activating it.

Only use this option if you are absolutely certain that you do not want to use source control. Deactivating source control will put your content out of sync with your source-control system, and will make it impossible to check in changes.

To deactivate source control:

In the upper-right corner of the Level Editor window, click the green, double-arrow icon (
【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]

). This brings up the Source Control Login screen.

Click the Run Without Source Control button. The green icon in the Level Editor window changes to a red circle with a slash (
【虚幻4翻译文档-源代码控制集成 | Unreal Engine】[虚幻4中文文档]

), to indicate that source control is not being used.
回复

使用道具 举报

0

主题

848

帖子

2830

积分

vip会员

Rank: 1

积分
2830
发表于 2016-7-2 18:07:56 | 显示全部楼层
楼主能发图瞧瞧嘛
回复 支持 反对

使用道具 举报

0

主题

888

帖子

2979

积分

vip会员

Rank: 1

积分
2979
发表于 2016-7-3 17:44:39 | 显示全部楼层
哈哈  找i了好久
回复 支持 反对

使用道具 举报

0

主题

832

帖子

2717

积分

vip会员

Rank: 1

积分
2717
发表于 2016-7-4 10:05:50 | 显示全部楼层
秒了 秒了  秒了  这东西 秒了
回复 支持 反对

使用道具 举报

0

主题

848

帖子

2754

积分

vip会员

Rank: 1

积分
2754
发表于 2016-7-11 17:49:07 来自手机 | 显示全部楼层
一定要看看。。。。。。
回复 支持 反对

使用道具 举报

0

主题

923

帖子

3041

积分

vip会员

Rank: 1

积分
3041
发表于 2016-7-11 17:51:30 来自手机 | 显示全部楼层
不错的资源啊,可以研究研究
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部