C# Class UnityEditor.VersionControl.Provider

显示文件 Open project: CarlosHBC/UnityDecompiled

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Add() public static method

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.
return Task

Add() public static method

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.
return Task

AddIsValid() public static method

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.
return bool

ChangeSetDescription() public static method

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.
return Task

ChangeSetMove() public static method

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.
return Task

ChangeSetMove() public static method

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.
return Task

ChangeSetMove() public static method

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.
return Task

ChangeSetMove() public static method

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.
return Task

ChangeSetStatus() public static method

Retrieves the list of assets belonging to a changeset.

public static ChangeSetStatus ( ChangeSet changeset ) : Task
changeset ChangeSet Changeset to query for assets.
return Task

ChangeSetStatus() public static method

Retrieves the list of assets belonging to a changeset.

public static ChangeSetStatus ( string changesetID ) : Task
changesetID string ChangesetID to query for assets.
return Task

Checkout() public static method

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.
return Task

Checkout() public static method

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.
return Task

Checkout() public static method

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.
return Task

Checkout() public static method

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.
return Task

CheckoutIsValid() public static method

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.
return bool

CheckoutIsValid() public static method

public static CheckoutIsValid ( Asset asset, CheckoutMode mode ) : bool
asset Asset
mode CheckoutMode
return bool

CheckoutIsValid() public static method

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.
return bool

CheckoutIsValid() public static method

public static CheckoutIsValid ( AssetList assets, CheckoutMode mode ) : bool
assets AssetList
mode CheckoutMode
return bool

Delete() public static method

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.
return Task

Delete() public static method

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.
return Task

Delete() public static method

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.
return Task

DeleteChangeSets() public static method

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

public static DeleteChangeSets ( UnityEditor changesets ) : Task
changesets UnityEditor List of changetsets.
return Task

DeleteChangeSetsIsValid() public static method

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

public static DeleteChangeSetsIsValid ( UnityEditor changesets ) : bool
changesets UnityEditor Changeset to test.
return bool

DiffHead() public static method

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.
return Task

DiffIsValid() public static method

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

public static DiffIsValid ( AssetList assets ) : bool
assets AssetList List of assets.
return bool

GetAssetListFromSelection() public static method

Return version control information about the currently selected assets.

public static GetAssetListFromSelection ( ) : AssetList
return AssetList

GetLatest() public static method

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.
return Task

GetLatest() public static method

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.
return Task

GetLatestIsValid() public static method

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.
return bool

GetLatestIsValid() public static method

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.
return bool

IncomingChangeSetAssets() public static method

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.
return Task

IncomingChangeSetAssets() public static method

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.
return Task

Lock() public static method

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.
return Task

Lock() public static method

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.
return Task

LockIsValid() public static method

Return true if the task can be executed.

public static LockIsValid ( Asset asset ) : bool
asset Asset Asset to test.
return bool

LockIsValid() public static method

Return true if the task can be executed.

public static LockIsValid ( AssetList assets ) : bool
assets AssetList List of assets to test.
return bool

Merge() public static method

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.
return Task

Move() public static method

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.
return Task

Resolve() public static method

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.
return Task

ResolveIsValid() public static method

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.
return bool

Revert() public static method

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.
return Task

Revert() public static method

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.
return Task

RevertIsValid() public static method

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.
return bool

RevertIsValid() public static method

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.
return bool

Status() public static method

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.
return Task

Status() public static method

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.
return Task

Status() public static method

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.
return Task

Status() public static method

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.
return Task

Status() public static method

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.
return Task

Status() public static method

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.
return Task

Submit() public static method

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.
return Task

SubmitIsValid() public static method

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.
return bool

UnlockIsValid() public static method

Returns true if locking the assets is a valid operation.

public static UnlockIsValid ( Asset asset ) : bool
asset Asset The asset to lock.
return bool

UnlockIsValid() public static method

Returns true if locking the assets is a valid operation.

public static UnlockIsValid ( AssetList assets ) : bool
assets AssetList The assets to lock.
return bool