ScriptAssembly Class |
Namespace: UMod.Scripting
public class ScriptAssembly
The ScriptAssembly type exposes the following members.
Name | Description | |
---|---|---|
ScriptAssembly |
Create a new ScriptAssembly wrapper for the specified loaded Assembly.
|
Name | Description | |
---|---|---|
Domain |
Get the ScriptDomain that this ScriptAssembly is currently loaded in.
| |
FullName |
Get the full name of the wrapped assembly.
| |
MainType |
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.
| |
Name |
Get the name of the assembly.
| |
RawAssembly |
Get the Assembly that this ScriptAssembly wraps.
| |
SecurityReport | ||
Version |
Get the version of the wrapped assembly.
|
Name | Description | |
---|---|---|
EnumerateAllMonoBehaviourTypes |
Enumerate all types defined in this ScriptAssembly that inherit from MonoBehaviour.
| |
EnumerateAllScriptableObjectTypes |
Enumerate all types defined in this ScriptAssembly that inherit from ScriptableObject.
| |
EnumerateAllSubTypesOf(Type, Boolean) |
Enumerate all types defined in this ScriptAssembly that inherits from the specified type.
| |
EnumerateAllSubTypesOfT(Boolean) |
Enumerate all types defined in this ScriptAssembly that inherit from the specified generic type.
| |
EnumerateAllTypes |
Enumerate all defined types in this ScriptAssembly.
| |
EnumerateAllUnityTypes |
Enumerate all types defined in this ScriptAssembly that inherit from Object.
| |
FindAllMonoBehaviourTypes |
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.
| |
FindAllScriptableObjectTypes |
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.
| |
FindAllSubTypesOf(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.
| |
FindAllSubTypesOfT(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.
| |
FindAllTypes |
Returns an array of all defined types in this ScriptAssembly.
| |
FindAllUnityTypes |
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.
| |
FindSubTypeOf(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).
| |
FindSubTypeOf(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.
| |
FindSubTypeOfT(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).
| |
FindSubTypeOfT(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.
| |
FindType |
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.
| |
HasSubtypeOf(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.
| |
HasSubtypeOf(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.
| |
HasSubtypeOfT |
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.
| |
HasSubtypeOfT(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.
| |
HasType |
Returns true if this ScriptAssembly defines a type with the specified name.
Depending upon settings, name comparison may or may not be case sensitive.
| |
SecurityCheckAssembly(CodeSecurityRestrictions) |
Run security verification on this assembly using the specified security restrictions.
| |
SecurityCheckAssembly(CodeSecurityRestrictions, CodeSecurityReport) |
Run security verification on this assembly using the specified security restrictions and output a security report
|