AGameMode::GetNumSpectators

Returns number of human players currently spectating

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

AGameModeBase::GetNumSpectators()

AGameMode::GetNumSpectators()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameMode.h

Include

#include "GameFramework/GameMode.h"

Source

/Engine/Source/Runtime/Engine/Private/GameMode.cpp

Syntax

virtual int32 GetNumSpectators()

Remarks

Returns number of human players currently spectating