C# Класс UnityEditor.VersionControl.Provider

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CacheStatus Asset
ChangeSets Task
ClearCache void
GenerateID int
GetActiveConfigFields UnityEditor.VersionControl.ConfigField[]
GetActivePlugin Plugin
GetAssetByGUID Asset
GetAssetByPath Asset
GetAtlasRectForState UnityEngine.Rect
INTERNAL_CALL_GetAtlasRectForState void
Incoming Task
Internal_Add Task
Internal_AddIsValid bool
Internal_CacheStatus Asset
Internal_ChangeSetDescription Task
Internal_ChangeSetMove Task
Internal_ChangeSetStatus Task
Internal_Checkout Task
Internal_CheckoutIsValid bool
Internal_CheckoutStrings Task
Internal_Delete Task
Internal_DeleteAtProjectPath Task
Internal_DeleteChangeSets Task
Internal_DeleteChangeSetsIsValid bool
Internal_DiffHead Task
Internal_DiffIsValid bool
Internal_GetAssetArrayFromSelection UnityEditor.VersionControl.Asset[]
Internal_GetLatest Task
Internal_GetLatestIsValid bool
Internal_IncomingChangeSetAssets Task
Internal_Lock Task
Internal_LockIsValid bool
Internal_Merge Task
Internal_MoveAsStrings Task
Internal_PromptAndCheckoutIfNeeded bool
Internal_Resolve Task
Internal_ResolveIsValid bool
Internal_Revert Task
Internal_RevertChangeSets Task
Internal_RevertIsValid bool
Internal_SetFileMode Task
Internal_SetFileModeStrings Task
Internal_Status Task
Internal_StatusAbsolutePath Task
Internal_StatusStrings Task
Internal_Submit Task
Internal_SubmitIsValid bool
Internal_UnlockIsValid bool
InvalidateCache void
IsCustomCommandEnabled bool
IsOpenForEdit bool
PromptAndCheckoutIfNeeded bool
RevertChangeSets Task
SetFileMode Task
SetFileMode Task
UpdateSettings Task

Открытые методы

Метод Описание
Add ( Asset asset, bool recursive ) : Task

Adds an assets or list of assets to version control.

Add ( AssetList assets, bool recursive ) : Task

Adds an assets or list of assets to version control.

AddIsValid ( AssetList assets ) : bool

Given a list of assets this function returns true if Add is a valid task to perform.

ChangeSetDescription ( ChangeSet changeset ) : Task

Given a changeset only containing the changeset ID, this will start a task for quering the description of the changeset.

ChangeSetMove ( Asset asset, ChangeSet changeset ) : Task

Move an asset or list of assets from their current changeset to a new changeset.

ChangeSetMove ( Asset asset, string changesetID ) : Task

Move an asset or list of assets from their current changeset to a new changeset.

ChangeSetMove ( AssetList assets, ChangeSet changeset ) : Task

Move an asset or list of assets from their current changeset to a new changeset.

ChangeSetMove ( AssetList assets, string changesetID ) : Task

Move an asset or list of assets from their current changeset to a new changeset.

ChangeSetStatus ( ChangeSet changeset ) : Task

Retrieves the list of assets belonging to a changeset.

ChangeSetStatus ( string changesetID ) : Task

Retrieves the list of assets belonging to a changeset.

Checkout ( Asset asset, CheckoutMode mode ) : Task

Checkout an asset or list of asset from the version control system.

Checkout ( AssetList assets, CheckoutMode mode ) : Task

Checkout an asset or list of asset from the version control system.

Checkout ( Object assets, CheckoutMode mode ) : Task

Checkout an asset or list of asset from the version control system.

Checkout ( string asset, CheckoutMode mode ) : Task

Checkout an asset or list of asset from the version control system.

CheckoutIsValid ( Asset asset ) : bool

Given an asset or a list of assets this function returns true if Checkout is a valid task to perform.

CheckoutIsValid ( Asset asset, CheckoutMode mode ) : bool
CheckoutIsValid ( AssetList assets ) : bool

Given an asset or a list of assets this function returns true if Checkout is a valid task to perform.

CheckoutIsValid ( AssetList assets, CheckoutMode mode ) : bool
Delete ( Asset asset ) : Task

This will statt a task for deleting an asset or assets both from disk and from version control system.

Delete ( AssetList assets ) : Task

This will statt a task for deleting an asset or assets both from disk and from version control system.

Delete ( string assetProjectPath ) : Task

This will statt a task for deleting an asset or assets both from disk and from version control system.

DeleteChangeSets ( UnityEditor changesets ) : Task

Starts a task that will attempt to delete the given changeset.

DeleteChangeSetsIsValid ( UnityEditor changesets ) : bool

Test if deleting a changeset is a valid task to perform.

DiffHead ( AssetList assets, bool includingMetaFiles ) : Task

Starts a task for showing a diff of the given assest versus their head revision.

DiffIsValid ( AssetList assets ) : bool

Return true is starting a Diff task is a valid operation.

GetAssetListFromSelection ( ) : AssetList

Return version control information about the currently selected assets.

GetLatest ( Asset asset ) : Task

Start a task for getting the latest version of an asset from the version control server.

GetLatest ( AssetList assets ) : Task

Start a task for getting the latest version of an asset from the version control server.

GetLatestIsValid ( Asset asset ) : bool

Returns true if getting the latest version of an asset is a valid operation.

GetLatestIsValid ( AssetList assets ) : bool

Returns true if getting the latest version of an asset is a valid operation.

IncomingChangeSetAssets ( ChangeSet changeset ) : Task

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

IncomingChangeSetAssets ( string changesetID ) : Task

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

Lock ( Asset asset, bool locked ) : Task

Attempt to lock an asset for exclusive editing.

Lock ( AssetList assets, bool locked ) : Task

Attempt to lock an asset for exclusive editing.

LockIsValid ( Asset asset ) : bool

Return true if the task can be executed.

LockIsValid ( AssetList assets ) : bool

Return true if the task can be executed.

Merge ( AssetList assets, MergeMethod method ) : Task

This method will initiate a merge task handle merging of the conflicting assets.

Move ( string from, string to ) : Task

Uses the version control plugin to move an asset from one path to another.

Resolve ( AssetList assets, ResolveMethod resolveMethod ) : Task

Start a task that will resolve conflicting assets in version control.

ResolveIsValid ( AssetList assets ) : bool

Tests if any of the assets in the list is resolvable.

Revert ( Asset asset, RevertMode mode ) : Task

Reverts the specified assets by undoing any changes done since last time you synced.

Revert ( AssetList assets, RevertMode mode ) : Task

Reverts the specified assets by undoing any changes done since last time you synced.

RevertIsValid ( Asset asset, RevertMode mode ) : bool

Return true if Revert is a valid task to perform.

RevertIsValid ( AssetList assets, RevertMode mode ) : bool

Return true if Revert is a valid task to perform.

Status ( Asset asset ) : Task

Start a task that will fetch the most recent status from revision control system.

Status ( Asset asset, bool recursively ) : Task

Start a task that will fetch the most recent status from revision control system.

Status ( AssetList assets ) : Task

Start a task that will fetch the most recent status from revision control system.

Status ( AssetList assets, bool recursively ) : Task

Start a task that will fetch the most recent status from revision control system.

Status ( string assets ) : Task

Start a task that will fetch the most recent status from revision control system.

Status ( string assets, bool recursively ) : Task

Start a task that will fetch the most recent status from revision control system.

Submit ( ChangeSet changeset, AssetList list, string description, bool saveOnly ) : Task

Start a task that submits the assets to version control.

SubmitIsValid ( ChangeSet changeset, AssetList assets ) : bool

Returns true if submitting the assets is a valid operation.

UnlockIsValid ( Asset asset ) : bool

Returns true if locking the assets is a valid operation.

UnlockIsValid ( AssetList assets ) : bool

Returns true if locking the assets is a valid operation.

Приватные методы

Метод Описание
CacheStatus ( string assetPath ) : Asset
ChangeSets ( ) : Task
ClearCache ( ) : void
GenerateID ( ) : int
GetActiveConfigFields ( ) : UnityEditor.VersionControl.ConfigField[]
GetActivePlugin ( ) : Plugin
GetAssetByGUID ( string guid ) : Asset
GetAssetByPath ( string unityPath ) : Asset
GetAtlasRectForState ( int state ) : Rect
INTERNAL_CALL_GetAtlasRectForState ( int state, Rect &value ) : void
Incoming ( ) : Task
Internal_Add ( Asset assets, bool recursive ) : Task
Internal_AddIsValid ( Asset assets ) : bool
Internal_CacheStatus ( string assetPath ) : Asset
Internal_ChangeSetDescription ( ChangeSet changeset ) : Task
Internal_ChangeSetMove ( Asset assets, ChangeSet target ) : Task
Internal_ChangeSetStatus ( ChangeSet changeset ) : Task
Internal_Checkout ( Asset assets, CheckoutMode mode ) : Task
Internal_CheckoutIsValid ( Asset assets, CheckoutMode mode ) : bool
Internal_CheckoutStrings ( string assets, CheckoutMode mode ) : Task
Internal_Delete ( Asset assets ) : Task
Internal_DeleteAtProjectPath ( string assetProjectPath ) : Task
Internal_DeleteChangeSets ( ChangeSet changesets ) : Task
Internal_DeleteChangeSetsIsValid ( ChangeSet changes ) : bool
Internal_DiffHead ( Asset assets, bool includingMetaFiles ) : Task
Internal_DiffIsValid ( Asset assets ) : bool
Internal_GetAssetArrayFromSelection ( ) : UnityEditor.VersionControl.Asset[]
Internal_GetLatest ( Asset assets ) : Task
Internal_GetLatestIsValid ( Asset assets ) : bool
Internal_IncomingChangeSetAssets ( ChangeSet changeset ) : Task
Internal_Lock ( Asset assets, bool locked ) : Task
Internal_LockIsValid ( Asset assets ) : bool
Internal_Merge ( Asset assets, MergeMethod method ) : Task
Internal_MoveAsStrings ( string from, string to ) : Task
Internal_PromptAndCheckoutIfNeeded ( string assets, string promptIfCheckoutIsNeeded ) : bool
Internal_Resolve ( Asset assets, ResolveMethod resolveMethod ) : Task
Internal_ResolveIsValid ( Asset assets ) : bool
Internal_Revert ( Asset assets, RevertMode mode ) : Task
Internal_RevertChangeSets ( ChangeSet changesets, RevertMode mode ) : Task
Internal_RevertIsValid ( Asset assets, RevertMode mode ) : bool
Internal_SetFileMode ( Asset assets, FileMode mode ) : Task
Internal_SetFileModeStrings ( string assets, FileMode mode ) : Task
Internal_Status ( Asset assets, bool recursively ) : Task
Internal_StatusAbsolutePath ( string assetPath ) : Task
Internal_StatusStrings ( string assetsProjectPaths, bool recursively ) : Task
Internal_Submit ( ChangeSet changeset, Asset assets, string description, bool saveOnly ) : Task
Internal_SubmitIsValid ( ChangeSet changeset, Asset assets ) : bool
Internal_UnlockIsValid ( Asset assets ) : bool
InvalidateCache ( ) : void
IsCustomCommandEnabled ( string name ) : bool
IsOpenForEdit ( Asset asset ) : bool
PromptAndCheckoutIfNeeded ( string assets, string promptIfCheckoutIsNeeded ) : bool
RevertChangeSets ( UnityEditor changesets, RevertMode mode ) : Task
SetFileMode ( AssetList assets, FileMode mode ) : Task
SetFileMode ( string assets, FileMode mode ) : Task
UpdateSettings ( ) : Task

Описание методов

Add() публичный статический Метод

Adds an assets or list of assets to version control.

public static Add ( Asset asset, bool recursive ) : Task
asset Asset Single asset to add to version control system.
recursive bool Set this true if adding should be done recursively into subfolders.
Результат Task

Add() публичный статический Метод

Adds an assets or list of assets to version control.

public static Add ( AssetList assets, bool recursive ) : Task
assets AssetList List of assets to add to version control system.
recursive bool Set this true if adding should be done recursively into subfolders.
Результат Task

AddIsValid() публичный статический Метод

Given a list of assets this function returns true if Add is a valid task to perform.

public static AddIsValid ( AssetList assets ) : bool
assets AssetList List of assets to test.
Результат bool

ChangeSetDescription() публичный статический Метод

Given a changeset only containing the changeset ID, this will start a task for quering the description of the changeset.

public static ChangeSetDescription ( ChangeSet changeset ) : Task
changeset ChangeSet Changeset to query description of.
Результат Task

ChangeSetMove() публичный статический Метод

Move an asset or list of assets from their current changeset to a new changeset.

public static ChangeSetMove ( Asset asset, ChangeSet changeset ) : Task
asset Asset Asset to move to changeset.
changeset ChangeSet Changeset to move asset to.
Результат Task

ChangeSetMove() публичный статический Метод

Move an asset or list of assets from their current changeset to a new changeset.

public static ChangeSetMove ( Asset asset, string changesetID ) : Task
asset Asset Asset to move to changeset.
changesetID string ChangesetID to move asset to.
Результат Task

ChangeSetMove() публичный статический Метод

Move an asset or list of assets from their current changeset to a new changeset.

public static ChangeSetMove ( AssetList assets, ChangeSet changeset ) : Task
assets AssetList List of asset to move to changeset.
changeset ChangeSet Changeset to move asset to.
Результат Task

ChangeSetMove() публичный статический Метод

Move an asset or list of assets from their current changeset to a new changeset.

public static ChangeSetMove ( AssetList assets, string changesetID ) : Task
assets AssetList List of asset to move to changeset.
changesetID string ChangesetID to move asset to.
Результат Task

ChangeSetStatus() публичный статический Метод

Retrieves the list of assets belonging to a changeset.

public static ChangeSetStatus ( ChangeSet changeset ) : Task
changeset ChangeSet Changeset to query for assets.
Результат Task

ChangeSetStatus() публичный статический Метод

Retrieves the list of assets belonging to a changeset.

public static ChangeSetStatus ( string changesetID ) : Task
changesetID string ChangesetID to query for assets.
Результат Task

Checkout() публичный статический Метод

Checkout an asset or list of asset from the version control system.

public static Checkout ( Asset asset, CheckoutMode mode ) : Task
asset Asset Asset to checkout.
mode CheckoutMode Tell the Provider to checkout the asset, the .meta file or both.
Результат Task

Checkout() публичный статический Метод

Checkout an asset or list of asset from the version control system.

public static Checkout ( AssetList assets, CheckoutMode mode ) : Task
assets AssetList List of assets to checkout.
mode CheckoutMode Tell the Provider to checkout the asset, the .meta file or both.
Результат Task

Checkout() публичный статический Метод

Checkout an asset or list of asset from the version control system.

public static Checkout ( Object assets, CheckoutMode mode ) : Task
assets Object List of assets to checkout.
mode CheckoutMode Tell the Provider to checkout the asset, the .meta file or both.
Результат Task

Checkout() публичный статический Метод

Checkout an asset or list of asset from the version control system.

public static Checkout ( string asset, CheckoutMode mode ) : Task
asset string Asset to checkout.
mode CheckoutMode Tell the Provider to checkout the asset, the .meta file or both.
Результат Task

CheckoutIsValid() публичный статический Метод

Given an asset or a list of assets this function returns true if Checkout is a valid task to perform.

public static CheckoutIsValid ( Asset asset ) : bool
asset Asset Single asset.
Результат bool

CheckoutIsValid() публичный статический Метод

public static CheckoutIsValid ( Asset asset, CheckoutMode mode ) : bool
asset Asset
mode CheckoutMode
Результат bool

CheckoutIsValid() публичный статический Метод

Given an asset or a list of assets this function returns true if Checkout is a valid task to perform.

public static CheckoutIsValid ( AssetList assets ) : bool
assets AssetList List of assets.
Результат bool

CheckoutIsValid() публичный статический Метод

public static CheckoutIsValid ( AssetList assets, CheckoutMode mode ) : bool
assets AssetList
mode CheckoutMode
Результат bool

Delete() публичный статический Метод

This will statt a task for deleting an asset or assets both from disk and from version control system.

public static Delete ( Asset asset ) : Task
asset Asset Asset to delete.
Результат Task

Delete() публичный статический Метод

This will statt a task for deleting an asset or assets both from disk and from version control system.

public static Delete ( AssetList assets ) : Task
assets AssetList List of assets to delete.
Результат Task

Delete() публичный статический Метод

This will statt a task for deleting an asset or assets both from disk and from version control system.

public static Delete ( string assetProjectPath ) : Task
assetProjectPath string Project path of asset.
Результат Task

DeleteChangeSets() публичный статический Метод

Starts a task that will attempt to delete the given changeset.

public static DeleteChangeSets ( UnityEditor changesets ) : Task
changesets UnityEditor List of changetsets.
Результат Task

DeleteChangeSetsIsValid() публичный статический Метод

Test if deleting a changeset is a valid task to perform.

public static DeleteChangeSetsIsValid ( UnityEditor changesets ) : bool
changesets UnityEditor Changeset to test.
Результат bool

DiffHead() публичный статический Метод

Starts a task for showing a diff of the given assest versus their head revision.

public static DiffHead ( AssetList assets, bool includingMetaFiles ) : Task
assets AssetList List of assets.
includingMetaFiles bool Whether or not to include .meta.
Результат Task

DiffIsValid() публичный статический Метод

Return true is starting a Diff task is a valid operation.

public static DiffIsValid ( AssetList assets ) : bool
assets AssetList List of assets.
Результат bool

GetAssetListFromSelection() публичный статический Метод

Return version control information about the currently selected assets.

public static GetAssetListFromSelection ( ) : AssetList
Результат AssetList

GetLatest() публичный статический Метод

Start a task for getting the latest version of an asset from the version control server.

public static GetLatest ( Asset asset ) : Task
asset Asset Asset to update.
Результат Task

GetLatest() публичный статический Метод

Start a task for getting the latest version of an asset from the version control server.

public static GetLatest ( AssetList assets ) : Task
assets AssetList List of assets to update.
Результат Task

GetLatestIsValid() публичный статический Метод

Returns true if getting the latest version of an asset is a valid operation.

public static GetLatestIsValid ( Asset asset ) : bool
asset Asset Asset to test.
Результат bool

GetLatestIsValid() публичный статический Метод

Returns true if getting the latest version of an asset is a valid operation.

public static GetLatestIsValid ( AssetList assets ) : bool
assets AssetList List of assets to test.
Результат bool

IncomingChangeSetAssets() публичный статический Метод

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

public static IncomingChangeSetAssets ( ChangeSet changeset ) : Task
changeset ChangeSet Incoming changeset.
Результат Task

IncomingChangeSetAssets() публичный статический Метод

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

public static IncomingChangeSetAssets ( string changesetID ) : Task
changesetID string Incoming changesetid.
Результат Task

Lock() публичный статический Метод

Attempt to lock an asset for exclusive editing.

public static Lock ( Asset asset, bool locked ) : Task
asset Asset Asset to lock/unlock.
locked bool True to lock assets, false to unlock assets.
Результат Task

Lock() публичный статический Метод

Attempt to lock an asset for exclusive editing.

public static Lock ( AssetList assets, bool locked ) : Task
assets AssetList List of assets to lock/unlock.
locked bool True to lock assets, false to unlock assets.
Результат Task

LockIsValid() публичный статический Метод

Return true if the task can be executed.

public static LockIsValid ( Asset asset ) : bool
asset Asset Asset to test.
Результат bool

LockIsValid() публичный статический Метод

Return true if the task can be executed.

public static LockIsValid ( AssetList assets ) : bool
assets AssetList List of assets to test.
Результат bool

Merge() публичный статический Метод

This method will initiate a merge task handle merging of the conflicting assets.

public static Merge ( AssetList assets, MergeMethod method ) : Task
assets AssetList The list of conflicting assets to be merged.
method MergeMethod How to merge the assets.
Результат Task

Move() публичный статический Метод

Uses the version control plugin to move an asset from one path to another.

public static Move ( string from, string to ) : Task
from string Path to source asset.
to string Path to destination.
Результат Task

Resolve() публичный статический Метод

Start a task that will resolve conflicting assets in version control.

public static Resolve ( AssetList assets, ResolveMethod resolveMethod ) : Task
assets AssetList The list of asset to mark as resolved.
resolveMethod ResolveMethod How the assets should be resolved.
Результат Task

ResolveIsValid() публичный статический Метод

Tests if any of the assets in the list is resolvable.

public static ResolveIsValid ( AssetList assets ) : bool
assets AssetList The list of asset to be resolved.
Результат bool

Revert() публичный статический Метод

Reverts the specified assets by undoing any changes done since last time you synced.

public static Revert ( Asset asset, RevertMode mode ) : Task
asset Asset The asset to be reverted.
mode RevertMode How to revert the assets.
Результат Task

Revert() публичный статический Метод

Reverts the specified assets by undoing any changes done since last time you synced.

public static Revert ( AssetList assets, RevertMode mode ) : Task
assets AssetList The list of assets to be reverted.
mode RevertMode How to revert the assets.
Результат Task

RevertIsValid() публичный статический Метод

Return true if Revert is a valid task to perform.

public static RevertIsValid ( Asset asset, RevertMode mode ) : bool
asset Asset Asset to test.
mode RevertMode Revert mode to test for.
Результат bool

RevertIsValid() публичный статический Метод

Return true if Revert is a valid task to perform.

public static RevertIsValid ( AssetList assets, RevertMode mode ) : bool
assets AssetList List of assets to test.
mode RevertMode Revert mode to test for.
Результат bool

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( Asset asset ) : Task
asset Asset The asset path to fetch new state for.
Результат Task

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( Asset asset, bool recursively ) : Task
asset Asset The asset path to fetch new state for.
recursively bool If any assets specified are folders this flag will get status for all descendants of the folder as well.
Результат Task

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( AssetList assets ) : Task
assets AssetList The assets fetch new state for.
Результат Task

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( AssetList assets, bool recursively ) : Task
assets AssetList The assets fetch new state for.
recursively bool If any assets specified are folders this flag will get status for all descendants of the folder as well.
Результат Task

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( string assets ) : Task
assets string The assets fetch new state for.
Результат Task

Status() публичный статический Метод

Start a task that will fetch the most recent status from revision control system.

public static Status ( string assets, bool recursively ) : Task
assets string The assets fetch new state for.
recursively bool If any assets specified are folders this flag will get status for all descendants of the folder as well.
Результат Task

Submit() публичный статический Метод

Start a task that submits the assets to version control.

public static Submit ( ChangeSet changeset, AssetList list, string description, bool saveOnly ) : Task
changeset ChangeSet The changeset to submit.
list AssetList The list of assets to submit.
description string The description of the changeset.
saveOnly bool If true then only save the changeset to be submitted later.
Результат Task

SubmitIsValid() публичный статический Метод

Returns true if submitting the assets is a valid operation.

public static SubmitIsValid ( ChangeSet changeset, AssetList assets ) : bool
changeset ChangeSet The changeset to submit.
assets AssetList The asset to submit.
Результат bool

UnlockIsValid() публичный статический Метод

Returns true if locking the assets is a valid operation.

public static UnlockIsValid ( Asset asset ) : bool
asset Asset The asset to lock.
Результат bool

UnlockIsValid() публичный статический Метод

Returns true if locking the assets is a valid operation.

public static UnlockIsValid ( AssetList assets ) : bool
assets AssetList The assets to lock.
Результат bool