Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Asset

Namespace: UnityEditor.VersionControl

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

This class containes information about the version control state of an asset.

Variables

fullNameGets the full name of the asset including extension.
isFolderReturns true if the asset is a folder.
isInCurrentProjectReturns true if the assets is in the current project.
isMetaReturns true if the instance of the Asset class actually refers to a .meta file.
lockedReturns true if the asset is locked by the version control system.
nameGet the name of the asset.
pathGets the path of the asset.
readOnlyReturns true is the asset is read only.
stateGets the version control state of the asset.

Public Functions

EditOpens the assets in an associated editor.
IsOneOfStatesReturns true if the version control state of the assets is one of the input states.
IsStateReturns true if the version control state of the asset exactly matches the input state.
LoadLoads the asset to memory.