Documents

1. BP_MetaGameMode Class Settings

BP_MetaGameMode game mode settings:

Actor Tick Settings

  • Start with Tick Enabled: ✅ Enabled - Starts tick function when game mode begins
  • Tick Interval: 0.0 - Tick runs every frame
  • Allow Tick Before Begin Play: ✅ Enabled - Allows tick before BeginPlay

Meta Login Settings

  • Login Screen Class: WBP_LoginScreen - Login screen widget class
  • Main Menu Class: WBP_MainMenu - Main menu widget class

Settings Configuration

  • Require Login on Start: ✅ Enabled - Login required when game starts
  • Allow Guest Login: ✅ Enabled - Allows guest login
  • Login Timeout: 30.0 seconds - Login timeout duration

2. Project Settings - Meta Login Template

Project SettingsGameMeta Login Template:

Backend Connection

Backend API URL: http://localhost:8000
API Token Endpoint: /api/token/
API Token Refresh Endpoint: /api/token/refresh/
Game Register Endpoint: /api/game/register/
Game Login Endpoint: /api/game/login/
Game Logout Endpoint: /api/game/logout/
Game Profile Endpoint: /api/game/profile/
Connection Timeout: 30.0
Request Retry Count: 3

Authentication Settings

  • Remember User: ✅ Enabled - Remember user credentials
  • Enable Offline Mode: ❌ Disabled - Offline mode
  • Allow Guest Login: ✅ Enabled - Guest login allowed
  • Auto Login Timeout: 30.0 seconds

Session Management

  • Max Concurrent Players: 100 - Maximum concurrent players
  • Session Update Interval: 1.0 seconds
  • Auto Save Interval: 5.0 seconds

Game Settings

  • Enable Leaderboard: ✅ Enabled - Leaderboard system
  • Starting Currency: 100 - Starting currency amount
  • Experience Per Level: 1000 - Experience points per level
  • Guest Starting Currency: 50 - Guest starting currency
  • MMO Level Name: L_Game_Map001 - MMO level name

3. Widget Blueprint Editor - UI Flow

Widget Blueprint editor UI flow for Meta Login Widget:

Login Flow

  1. Play AnimationFade In animation
  2. Get Text → Get text from username and password fields
  3. Get Game Instance → Cast to Meta Game Instance
  4. Login User → Call login function
  5. Notification Task → Notification task

Event Handling

  • On Clicked (LoginButton) → Login button click event
  • Play Animation → UI animations
  • Get Text (Text Box) → Read data from text fields

4. BP_MetaPlayerController Class Settings

BP_MetaPlayerController player controller settings:

UI Widget Classes

  • User Profile Widget Class: WBP_UserProfile - User profile widget
  • Main Menu Widget Class: WBP_MainMenu - Main menu widget
  • Notification Widget Class: WBP_Notification - Notification widget

Actor Tick Settings

  • Start with Tick Enabled: ✅ Enabled
  • Tick Interval: 0.0 seconds
  • Allow Tick Before Begin Play: ✅ Enabled

Advanced Settings

  • Tick Even when Paused: ✅ Enabled - Tick even when paused
  • Allow Tick on Dedicated Server: ❌ Disabled
  • Tick Group: Pre Physics - Pre-physics tick group

Player Controller Settings

  • Player Camera Manager Class: None - Camera manager class
  • Auto Manage Active Camera Target: ✅ Enabled
  • Smooth Target View Rotation Speed: 20.0
  • Should Perform Full Tick when Paused: ❌ Disabled

Cheat Manager

  • Cheat Class: CheatManager - Cheat manager class

Mouse Interface

  • Show Mouse Cursor: ❌ Disabled
  • Enable Click Events: ✅ Enabled - Click events
  • Enable Touch Events: ✅ Enabled - Touch events
  • Enable Mouse Over Events: ❌ Disabled
  • Enable Touch Over Events: ❌ Disabled

5. Login/Register UI Flow

Login and Register UI Flow:

Login Button Flow

  1. On Clicked (LoginButton) → Login button clicked
  2. Get Game Instance → Get game instance
  3. Cast To MetaGameInstance → Cast to Meta Game Instance
  4. Get Text (Text Box) → Get username and password text
  5. Login User → User login function

Guest Login Flow

  1. On Clicked (GuestLoginButton) → Guest login button
  2. Get Game Instance → Get game instance
  3. As Meta Game Instance → As Meta Game Instance

Register Button Flow

  1. On Clicked (RegisterButton) → Register button clicked
  2. Get Game Instance → Get game instance
  3. Cast To MetaGameInstance → Cast to Meta Game Instance
  4. Get Text (Text Box) → Get registration information:
    - Register Username Text Box → Username
    - Register Email Text Box → Email
    - Register Password Text Box → Password
    - Register Password Confirm Text Box → Password confirmation
  5. Register User → User registration function

6. Content Browser - Meta Login Template Classes

Content Browser - Meta Classes

Content Browser Meta Login Template Blueprint classes:

Available Blueprint Classes

  1. BP_MetaGameInstance - Main game instance class
  2. BP_MetaGameMode - Game mode class
  3. BP_MetaGameSession - Game session class
  4. BP_MetaGameState - Game state class
  5. BP_MetaPawn - Player pawn class
  6. BP_MetaPlayerController - Player controller class
  7. BP_MetaPlayerState - Player state class
  8. BP_MetaSpectatorPawn - Spectator pawn class

Usage Purposes

  • BP_MetaGameInstance: Game-wide persistent data and login system
  • BP_MetaGameMode: Game rules and mode settings
  • BP_MetaGameSession: Multiplayer session management
  • BP_MetaGameState: Game state data sharing
  • BP_MetaPawn: Default player character control
  • BP_MetaPlayerController: Player input and UI management
  • BP_MetaPlayerState: Player-specific data storage
  • BP_MetaSpectatorPawn: Spectator mode control

Project Structure Integration

These classes form the foundation of the Meta Login Template system and work together to provide:
- User authentication
- Player data management
- UI flow control
- Backend communication
- Session management

functionality.