FDMXRuntimeUtils::GetNameAndIndexFromString

Utility to separate a name from an index at the end.

Windows
MacOS
Linux

References

Module

DMXRuntime

Header

/Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXRuntime/Public/DMXRuntimeUtils.h

Include

#include "DMXRuntimeUtils.h"

Source

/Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXRuntime/Private/DMXRuntimeUtils.cpp

Syntax

static bool GetNameAndIndexFromString
(
    const FString & InString,
    FString & OutName,
    int32 & OutIndex
)

Remarks

Utility to separate a name from an index at the end.

Returns

True if there was an index on InString.

Parameters

Parameter

Description

InString

The string to be separated.

OutName

The string without an index at the end. White spaces and '_' are also removed.

OutIndex

Index that was separated from the name. If there was none, it's zero. Check the return value to know if there was an index on InString.

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