FComponentRegistry::NewComponentType

Define a new transient tag type using the specified information.

Windows
MacOS
Linux

References

Module

MovieScene

Header

/Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneComponentRegistry.h

Include

#include "EntitySystem/MovieSceneComponentRegistry.h"

Source

/Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityFactoryTemplates.h

Syntax

template<typename T>
TComponentTypeID< T > NewComponentType
(
    const TCHAR *const DebugName,
    EComponentTypeFlags Flags
)

Remarks

Define a new transient tag type using the specified information. Tags have 0 memory overhead. @note Transitory tag types must be unregistered when no longer required by calling DestroyComponentTypeSafe or Unsafe to prevent leaking component type IDs

Returns

A new component type identifier for the tag

Parameters

Parameter

Description

DebugName

A developer friendly name that accompanies this component type for debugging purposes

Flags

(Optional) Flags relating to the new component type

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