TObjectArrayIterator::TObjectArrayIterator

Sample code [TArray](API\Runtime\Core\Containers\TArray) TestPawns; ...

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Syntax

TObjectArrayIterator
(
    TArray< TObjectClass * > & InArray,
    UClass * InClassToCheck,
    bool InbExactClass
)

Remarks

Sample code TArray TestPawns; ... / test iterator, all items for ( TObjectArrayIterator It(TestPawns); It; ++It ) { UE_LOG(LogUObjectGlobals, Log, TEXT("Item %s"),*It->GetFullName()); } Constructor, iterates all non-null, non pending kill objects, optionally of a particular class or base class

Parameters

Parameter

Description

InArray

the array to iterate on

InClass

if non-null, will only iterate on items IsA this class

InbExactClass

if true, will only iterate on exact matches

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