Class NativeBinaryModule
The C# and C++ scripting assembly container that holds the native types information and supports interop with managed runtime.
Inherited Members
NativeBinaryModule
Assembly: FlaxEngine.dll
File: Engine/Scripting/BinaryModule.h
Syntax
public class NativeBinaryModule : public ManagedBinaryModule
Constructors
NativeBinaryModule(const StringAnsiView& name)
Initializes a new instance of the Native
Declaration
public NativeBinaryModule(const StringAnsiView& name)
Parameters
String The module name. |
NativeBinaryModule(MAssembly* assembly)
Initializes a new instance of the Native
Declaration
public NativeBinaryModule(MAssembly* assembly)
Parameters
MAssembly
assembly
The managed assembly. Object will be deleted within the scripting assembly. |
Fields
Library
The native library (C++ DLL).
Declaration
public void* Library
Field Value
void
|
Methods
Destroy(bool isReloading)
Unloads the module (native library and C# assembly and any other scripting data). Unregisters the module.
Declaration
public virtual void Destroy(bool isReloading) override
Parameters
bool
isReloading
If true module is during reloading and should force release the runtime data. Used for C# assembly to clean up it's runtime data in Mono (or other scripting runtime). |