UGameFrameworkComponent::HasAuthority

Returns true if the owner's role is ROLE_Authority

Choose your operating system:

Windows

macOS

Linux

References

Module

ModularGameplay

Header

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/GameFrameworkComponent.h

Include

#include "Components/GameFrameworkComponent.h"

Source

/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Private/Components/GameFrameworkComponent.cpp

Syntax

bool HasAuthority() const

Remarks

Returns true if the owner's role is ROLE_Authority