MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Object

Method Object

Source/Engine/Scripting/Object.cs:46–55  ·  view source on GitHub ↗

Initializes a new instance of the .

()

Source from the content-addressed store, hash-verified

44 /// Initializes a new instance of the <see cref="Object"/>.
45 /// </summary>
46 protected Object()
47 {
48 // Construct missing native object if managed objects gets created in managed world
49 if (__unmanagedPtr == IntPtr.Zero)
50 {
51 Internal_ManagedInstanceCreated(this, FlaxEngine.Interop.NativeInterop.GetTypeHolder(GetType()).managedClassPointer);
52 if (__unmanagedPtr == IntPtr.Zero)
53 throw new Exception($"Failed to create native instance for object of type {GetType().FullName} (assembly: {GetType().Assembly.FullName}).");
54 }
55 }
56
57 /// <summary>
58 /// Notifies the unmanaged interop object that the managed instance was finalized.

Callers 9

SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45

Calls 2

GetTypeFunction · 0.85
GetTypeHolderMethod · 0.80

Tested by

no test coverage detected