Click or drag to resize

ScriptAssembly Class

A ScriptAssembly represents a managed assembly that has been loaded into a ScriptDomain at runtime.
Inheritance Hierarchy
SystemObject
  UMod.ScriptingScriptAssembly

Namespace:  UMod.Scripting
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ScriptAssembly

The ScriptAssembly type exposes the following members.

Constructors
  NameDescription
Public methodScriptAssembly
Create a new ScriptAssembly wrapper for the specified loaded Assembly.
Top
Properties
  NameDescription
Public propertyDomain
Get the ScriptDomain that this ScriptAssembly is currently loaded in.
Public propertyFullName
Get the full name of the wrapped assembly.
Public propertyMainType
Gets the main type for the assembly. This will always return the first defined type in the assembly which is especially useful for assemblies that only define a single type.
Public propertyName
Get the name of the assembly.
Public propertyRawAssembly
Get the Assembly that this ScriptAssembly wraps.
Public propertySecurityReport
Public propertyVersion
Get the version of the wrapped assembly.
Top
Methods
  NameDescription
Public methodEnumerateAllMonoBehaviourTypes
Enumerate all types defined in this ScriptAssembly that inherit from MonoBehaviour.
Public methodEnumerateAllScriptableObjectTypes
Enumerate all types defined in this ScriptAssembly that inherit from ScriptableObject.
Public methodEnumerateAllSubTypesOf(Type, Boolean)
Enumerate all types defined in this ScriptAssembly that inherits from the specified type.
Public methodEnumerateAllSubTypesOfT(Boolean)
Enumerate all types defined in this ScriptAssembly that inherit from the specified generic type.
Public methodEnumerateAllTypes
Enumerate all defined types in this ScriptAssembly.
Public methodEnumerateAllUnityTypes
Enumerate all types defined in this ScriptAssembly that inherit from Object.
Public methodFindAllMonoBehaviourTypes
Attempts to find all types defined in this ScriptAssembly that inherit from MonoBehaviour. If there are no types that inherit from MonoBehaviour then the return value will be an empty array.
Public methodFindAllScriptableObjectTypes
Attempts to find all types defined in this ScriptAssembly that inherit from ScriptableObject. If there are no types that inherit from ScriptableObject then the return value will be an empty array.
Public methodFindAllSubTypesOf(Type, Boolean)
Attempts to find all types defined in this ScriptAssembly that inherits from the specified type. If there are no types that inherit from the specified type then the return value will be an empty array.
Public methodFindAllSubTypesOfT(Boolean)
Attempts to find all types defined in this ScriptAssembly that inherit from the specified generic type. If there are no types that inherit from the specified type then the return value will be an empty array.
Public methodFindAllTypes
Returns an array of all defined types in this ScriptAssembly.
Public methodFindAllUnityTypes
Attempts to find all types defined in this ScriptAssembly that inherit from Object. If there are no types that inherit from Object then the return value will be an empty array.
Public methodFindSubTypeOf(Type, Boolean)
Attempts to find a type defined in this ScriptAssembly that inherits from the specified base type. If there is more than one type that inherits from the specified base type, then the first matching type will be returned. If you want to find all types then use FindAllSubTypesOf(Type, Boolean).
Public methodFindSubTypeOf(Type, String)
Attempts to find a type defined in this ScriptAssembly that inherits from the specified base type and matches the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodFindSubTypeOfT(Boolean)
Attempts to find a type defined in this ScriptAssembly that inherits from the specified generic type. If there is more than one type that inherits from the specified generic type, then the first matching type will be returned. If you want to find all types then use FindAllSubTypesOfT(Boolean).
Public methodFindSubTypeOfT(String)
Attempts to find a type defined in this ScriptAssembly that inherits from the specified generic type and matches the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodFindType
Attempts to find a type defined in this ScriptAssembly with the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodHasSubtypeOf(Type)
Returns true if this ScriptAssembly defines one or more types that inherit from the specified type. The specified type may be a base class or interface type.
Public methodHasSubtypeOf(Type, String)
Returns true if this ScriptAssembly defines a type that inherits from the specified type and matches the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodHasSubtypeOfT
Returns true if this ScriptAssembly defined one or more types that inherit from the specified generic type. The specified generic type may be a base class or interface type.
Public methodHasSubtypeOfT(String)
Returns true if this ScriptAssembly defines a type that inherits from the specified genric type and matches the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodHasType
Returns true if this ScriptAssembly defines a type with the specified name. Depending upon settings, name comparison may or may not be case sensitive.
Public methodSecurityCheckAssembly(CodeSecurityRestrictions)
Run security verification on this assembly using the specified security restrictions.
Public methodSecurityCheckAssembly(CodeSecurityRestrictions, CodeSecurityReport)
Run security verification on this assembly using the specified security restrictions and output a security report
Top
See Also