UScriptStruct::CopyScriptStruct

Copy a struct over an existing struct

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp

Syntax

void CopyScriptStruct
(
    void * Dest,
    void const * Src,
    int32 ArrayDim
) const

Remarks

Copy a struct over an existing struct

Parameters

Parameter

Description

Dest

Pointer to memory to initialize

Src

Pointer to memory to copy from

ArrayDim

Number of elements in the array

Stride

Stride of the array, If this default (0), then we will pull the size from the struct

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