C# Class Google.VersionHandler

Inheritance: UnityEditor.AssetPostprocessor
Mostrar archivo Open project: googlesamples/unity-jar-resolver Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

FindAllAssets() public static method

Get all assets managed by this module.
public static FindAllAssets ( ) : string[]
return string[]

FindClass() public static method

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.
return System.Type

InvokeInstanceMethod() public static method

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

InvokeMethod() public static method

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

InvokeStaticMethod() public static method

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

SearchAssetDatabase() public static method

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.
return string[]

UpdateVersionedAssets() public static method

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
return void