C# Класс Google.VersionHandler.FileMetadata

Derives metadata from an asset filename.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ASSET_LABEL string
BUILD_TARGET_NAME_TO_ENUM BuildTarget>.Dictionary
filename string
filenameCanonical string
isManifest bool
targets string[]
versionString string

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

Метод Описание
CalculateVersion ( ) : long

Get a numeric version number. Each component is multiplied by VERSION_COMPONENT_MULTIPLIER^(MAX_VERSION_COMPONENTS - (component_index + 1)) and accumulated in the returned value. If the version string contains more than MAX_VERSION_COMPONENTS the remaining components are ignored.

CalculateVersion ( string versionString ) : long

Get a numeric version number. Each component is multiplied by VERSION_COMPONENT_MULTIPLIER^(MAX_VERSION_COMPONENTS - (component_index + 1)) and accumulated in the returned value. If the version string contains more than MAX_VERSION_COMPONENTS the remaining components are ignored.

FileMetadata ( string filename ) : UnityEngine

Parse metadata from filename and store in this class.

GetAssetImporter ( ) : AssetImporter

Get the AssetImporter associated with this file.

GetBuildTargets ( ) : HashSet

Get the list of build targets this file is compatible with.

GetEditorEnabled ( ) : bool

Determine whether this file is compatible with the editor. This is a special case as the editor isn't a "platform" covered by UnityEditor.BuildTarget.

RenameAsset ( string newFilename ) : bool

Rename the file associated with this data.

UpdateAssetLabels ( ) : void

Save metadata from this class into the asset's labels.

VersionNumberToString ( long versionNumber ) : string

Convert a numeric version back to a version string.

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

Метод Описание
GetBlackList ( ) : HashSet
GetUnityVersionMajorMinor ( ) : float
IsTargetSupportedByUnity ( BuildTarget target ) : bool
ParseTargets ( string token ) : string[]

Parse target names from a filename or label field.

ParseVersion ( string token ) : string

Parse version from a filename or label field.

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

CalculateVersion() публичный Метод

Get a numeric version number. Each component is multiplied by VERSION_COMPONENT_MULTIPLIER^(MAX_VERSION_COMPONENTS - (component_index + 1)) and accumulated in the returned value. If the version string contains more than MAX_VERSION_COMPONENTS the remaining components are ignored.
public CalculateVersion ( ) : long
Результат long

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

Get a numeric version number. Each component is multiplied by VERSION_COMPONENT_MULTIPLIER^(MAX_VERSION_COMPONENTS - (component_index + 1)) and accumulated in the returned value. If the version string contains more than MAX_VERSION_COMPONENTS the remaining components are ignored.
public static CalculateVersion ( string versionString ) : long
versionString string
Результат long

FileMetadata() публичный Метод

Parse metadata from filename and store in this class.
public FileMetadata ( string filename ) : UnityEngine
filename string Name of the file to parse.
Результат UnityEngine

GetAssetImporter() публичный Метод

Get the AssetImporter associated with this file.
public GetAssetImporter ( ) : AssetImporter
Результат UnityEditor.AssetImporter

GetBuildTargets() публичный Метод

Get the list of build targets this file is compatible with.
public GetBuildTargets ( ) : HashSet
Результат HashSet

GetEditorEnabled() публичный Метод

Determine whether this file is compatible with the editor. This is a special case as the editor isn't a "platform" covered by UnityEditor.BuildTarget.
public GetEditorEnabled ( ) : bool
Результат bool

RenameAsset() публичный Метод

Rename the file associated with this data.
public RenameAsset ( string newFilename ) : bool
newFilename string New name of the file.
Результат bool

UpdateAssetLabels() публичный Метод

Save metadata from this class into the asset's labels.
public UpdateAssetLabels ( ) : void
Результат void

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

Convert a numeric version back to a version string.
public static VersionNumberToString ( long versionNumber ) : string
versionNumber long
Результат string

Описание свойств

ASSET_LABEL публичное статическое свойство

Label which flags whether an asset is should be managed by this module.
public static string ASSET_LABEL
Результат string

BUILD_TARGET_NAME_TO_ENUM статическое публичное свойство

static public Dictionary BUILD_TARGET_NAME_TO_ENUM
Результат BuildTarget>.Dictionary

filename публичное свойство

Name of the file use to construct this object.
public string filename
Результат string

filenameCanonical публичное свойство

Name of the file with metadata stripped.
public string filenameCanonical
Результат string

isManifest публичное свойство

Set if this references an asset manifest.
public bool isManifest
Результат bool

targets публичное свойство

List of target platforms parsed from the filename.
public string[] targets
Результат string[]

versionString публичное свойство

Version string parsed from the filename or AssetDatabase label if it's not present in the filename.
public string versionString
Результат string