GetPhysxObjectSize

Returns the in-memory size of the specified object by serializing it.

Windows
MacOS
Linux

References

Module

PhysicsCore

Header

/Engine/Source/Runtime/PhysicsCore/Public/PhysXSupportCore.h

Include

#include "PhysXSupportCore.h"

Source

/Engine/Source/Runtime/PhysicsCore/Private/PhysXSupportCore.cpp

Syntax

SIZE_T GetPhysxObjectSize
(
    PxBase * Obj,
    const PxCollection * SharedCollection
)

Remarks

Returns the in-memory size of the specified object by serializing it.

Returns

Size of the object in bytes determined by serialization

Parameters

Parameter

Description

Obj

Object to determine the memory footprint for

SharedCollection

Shared collection of data to ignore

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss