USubsystem::ShouldCreateSubsystem

Override to control if the Subsystem should be created at all.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Subsystems/Subsystem.h

Include

#include "Subsystems/Subsystem.h"

Syntax

virtual bool ShouldCreateSubsystem
(
    UObject * Outer
) const

Remarks

Override to control if the Subsystem should be created at all. For example you could only have your system created on servers. It's important to note that if using this is becomes very important to null check whenever getting the Subsystem.

Note: This function is called on the CDO prior to instances being created!

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