C# Класс Google.VersionHandler

Наследование: UnityEditor.AssetPostprocessor
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
FindAllAssets ( ) : string[]

Get all assets managed by this module.

FindClass ( string assemblyName, string className ) : Type

Find a class from an assembly by name.

InvokeInstanceMethod ( object objectInstance, string methodName, object args, object>.Dictionary namedArgs = null ) : object

Call a method on an object with named arguments.

InvokeMethod ( Type type, object objectInstance, string methodName, object args, object>.Dictionary namedArgs = null ) : object

Call a method on an object with named arguments.

InvokeStaticMethod ( Type type, string methodName, object args, object>.Dictionary namedArgs = null ) : object

Call a static method on an object.

SearchAssetDatabase ( string assetsFilter = null, FilenameFilter filter = null ) : string[]

Search the asset database for all files matching the specified filter.

UpdateVersionedAssets ( bool forceUpdate = false ) : void

Find all files in the asset database with multiple version numbers encoded in their filename, select the most recent revisions and delete obsolete versions and files referenced by old manifests that are not present in the most recent manifests.

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

Метод Описание
MoveAssetToTrash ( string filename ) : void

Move an asset to trash, writing to the log if logging is enabled.

OnPostProcessAllAssets ( string importedAssets, string deletedAssets, string movedAssets, string movedFromPath ) : void

Scanned for versioned assets and apply modifications if required.

ShowSettings ( ) : void
UpdateNow ( ) : void
VersionHandler ( ) : UnityEngine

Enables / disables assets imported at multiple revisions / versions. In addition, this module will read text files matching _manifest_ and remove files from older manifest files.

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

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

Get all assets managed by this module.
public static FindAllAssets ( ) : string[]
Результат string[]

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

Find a class from an assembly by name.
public static FindClass ( string assemblyName, string className ) : Type
assemblyName string Name of the assembly to search for.
className string Name of the class to find.
Результат System.Type

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

Call a method on an object with named arguments.
public static InvokeInstanceMethod ( object objectInstance, string methodName, object args, object>.Dictionary namedArgs = null ) : object
objectInstance object Object to call a method on.
methodName string Name of the method to call.
args object
namedArgs object>.Dictionary Named arguments of the method.
Результат object

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

Call a method on an object with named arguments.
public static InvokeMethod ( Type type, object objectInstance, string methodName, object args, object>.Dictionary namedArgs = null ) : object
type System.Type Class to call the method on.
objectInstance object Object to call a method on.
methodName string Name of the method to call.
args object
namedArgs object>.Dictionary Named arguments of the method.
Результат object

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

Call a static method on an object.
public static InvokeStaticMethod ( Type type, string methodName, object args, object>.Dictionary namedArgs = null ) : object
type System.Type Class to call the method on.
methodName string Name of the method to call.
args object
namedArgs object>.Dictionary Named arguments of the method.
Результат object

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

Search the asset database for all files matching the specified filter.
public static SearchAssetDatabase ( string assetsFilter = null, FilenameFilter filter = null ) : string[]
assetsFilter string Filter used to query the /// AssetDatabase. If this isn't specified, all assets are searched. ///
filter FilenameFilter Optional delegate to filter the returned /// list.
Результат string[]

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

Find all files in the asset database with multiple version numbers encoded in their filename, select the most recent revisions and delete obsolete versions and files referenced by old manifests that are not present in the most recent manifests.
public static UpdateVersionedAssets ( bool forceUpdate = false ) : void
forceUpdate bool
Результат void