Свойство | Тип | Описание | |
---|---|---|---|
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 ( ) : |
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.
|
public static CalculateVersion ( string versionString ) : long | ||
versionString | string | |
Результат | long |
public FileMetadata ( string filename ) : UnityEngine | ||
filename | string | Name of the file to parse. |
Результат | UnityEngine |
public GetAssetImporter ( ) : |
||
Результат |
public RenameAsset ( string newFilename ) : bool | ||
newFilename | string | New name of the file. |
Результат | bool |
public static VersionNumberToString ( long versionNumber ) : string | ||
versionNumber | long | |
Результат | string |
static public Dictionary |
||
Результат | BuildTarget>.Dictionary |