UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateScope.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// Can't be #pragma once because we want this to be interpreted differently depending on the module that is referencing the including file
4
5// SLATE_MODULE is defined private to the module in Slate.build.cs
6// This allows us to establish a scope that is public within the Slate module itself, but protected from all consumers of the module
7
8// [[ IncludeTool: Inline ]] // Markup to tell IncludeTool that this file is state changing and cannot be optimized out.
9
10#ifdef SLATE_MODULE
11#define SLATE_SCOPE public
12#else
13#define SLATE_SCOPE protected
14#endif