Prove a first-person camera switch with Unreal Development console properties
Section titled “Prove a first-person camera switch with Unreal Development console properties”- Status: current
- Engine: ue6-main
61e2877e10, Linux x86_64, Epic clang 23.1.5 (v27 SDK) - Context: Standalone UE6 Development package, possessed native pawn, native UMG and Enhanced Input
- Prerequisites: Packaged Linux build, viewport under Vulkan SM6 offscreen, isolated
-UserDir, and Development console commands
Symptom
Section titled “Symptom”A camera-mode log reports the requested mode at button time. It does not observe an intermediate camera pose, the local-only mesh flag or the objective arrow widget. A compact log fixture needs those values from the same live run.
Smallest example / reproduction
Section titled “Smallest example / reproduction”Hold the pawn at a known position. Schedule getall PlayerCameraManager CameraCachePrivate before a view switch, halfway through the blend, and after it. Query getall StaticMeshComponent bOwnerNoSee NAME=Body in each mode. For projected native UMG, query getall Image Brush to identify the arrow by its texture path, then match its object name in a getall Image Visibility sample from each view.
Solution
Section titled “Solution”Blend between the spring-arm view and GetPawnViewLocation() in the pawn’s CalcCamera. Select by tracing along the cached local GetPlayerViewPoint and enable the relevant trace response on interaction proxies. Inject the actual Enhanced Input key through the local controller and sample the runtime camera manager and HUD using delayed Development commands at fixed timestep. Use a writable isolated save directory and relaunch with the same directory.
Why it works
Section titled “Why it works”CameraCachePrivate.POV records the camera manager’s view used for gameplay. A stationary pawn makes the difference between the third-person position, the intermediate pose and the eye offset measurable. bOwnerNoSee is the primitive’s view-ownership flag. Matching the arrow’s UMG brush resource and then inspecting visibility identifies the correct widget even when instance names differ between processes.
Verified
Section titled “Verified”- Evidence level: runs in packaged build
- How:
Scripts/prove_camera.shin Coop Zero emittedPackaged camera toggles, first-person aim and reach, carried bucket, HUD and settings reload passed. The settled camera Z was154.000000from pawn Z 90 and standing eye offset 64. The isolated relaunch loggedCAMERA mode=first source=startup. - Date / by: 2026-11-25, Coop Zero Step 13
Limits and assumptions
Section titled “Limits and assumptions”The commands inspect Development properties and scripted camera and widget state. Physical gamepad input, appearance, and comfort remain for the owner playtest. The package check is Linux standalone.