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

Method GetUnmanagedPtr

Source/Engine/Scripting/Object.cs:266–270  ·  view source on GitHub ↗

Gets the pointer to the native object. Handles null object reference (returns zero). The object. The native object pointer.

(Object obj)

Source from the content-addressed store, hash-verified

264 /// <param name="obj">The object.</param>
265 /// <returns>The native object pointer.</returns>
266 [MethodImpl(MethodImplOptions.AggressiveInlining)]
267 public static IntPtr GetUnmanagedPtr(Object obj)
268 {
269 return obj?.__unmanagedPtr ?? IntPtr.Zero;
270 }
271
272 internal static IntPtr GetUnmanagedPtr(SoftObjectReference reference)
273 {

Callers 15

DrawSceneDepthMethod · 0.80
InvokeSerializerMethod · 0.80
EndInvokeRPCMethod · 0.80
LogExceptionMethod · 0.80
LogMethod · 0.80
ToNativePointerMethod · 0.80
DrawTextureMethod · 0.80
DrawTexturePointMethod · 0.80
DrawMaterialMethod · 0.80
JsonAssetReferenceClass · 0.80
CompareToMethod · 0.80
AddMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected