MakeStructOnScope

Allocates a new struct of type U with the given arguments and returns it as a Typed StructOnScope of type T.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/StructOnScope.h"

Syntax

template<typename T, typename U, typename... TArgs>
TStructOnScope< T > MakeStructOnScope
(
    TArgs &&... Args
)

Remarks

Allocates a new struct of type U with the given arguments and returns it as a Typed StructOnScope of type T.

Returns

A TStructOnScope which holds a struct to a newly-constructed U with the specified Args.

Parameters

Parameter

Description

Args

The arguments to pass to the constructor of U.

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