UCFOWComponent

Overview

Fog of War renderer. Draws view and revealed areas to render targets using material brushes. Supports actor agents, room agents and complex raycasting for line-of-sight.

Properties & Methods

Name Description
brush Dynamic material for view area drawing
brushRevealed Dynamic material for revealed area drawing
fowActorAgentArray Array of advIdx whose vision contributes to FOW
fowRoomAgentArray Array of (clusterId, roomId) pairs for room-based reveal
init Creates brush materials, sets tick interval from maker
addFOWActorAgent / removeFOWActorAgent Manage actor vision agents
addFOWRoomAgent / removeFOWRoomAgent Manage room reveal agents
whatToDoInViewArea Draws view circles for all agents on the view render target
whatToDoInRevealedArea Draws revealed area with optional complex ray line-of-sight
// FOW is tick-driven, refresh rate from maker.fogOfWarRefreshRate
// Complex ray mode: casts rays in a circle to detect occlusion
// Simple mode: draws a single brush circle for revealed area