Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/RigLogic
Warnings * User is responsible for releasing the returned pointer by calling destroy.
Description
This form of creation allows faster instantiation of RigLogic, as it doesn't need to go through the storage optimization phase, it just loads an earlier dumped state of a RigLogic instance back into memory.
If a custom memory resource is not given, a default allocation mechanism will be used.
User is responsible for releasing the returned pointer by calling destroy.
| Name | restore |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/riglogic/riglogic/RigLogic.h |
| Include Path | #include "riglogic/riglogic/RigLogic.h" |
| Source | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/riglogic/riglogic/RigLogicImpl.cpp |
static RigLogic * restore
(
BoundedIOStream * source,
MemoryResource * memRes
)
Parameters
| Name | Remarks |
|---|---|
| source | Source stream from which to restore the state, obtained by calling dump. |
| memRes | A custom memory resource to be used for allocations. |