Settlement UI Bridge Fix Guide
Problem Identified
You have two separate GameObjects:
- SettlementInteractionManager GameObject - has SettlementInteractionManager + SettlementUIBridge
- SettlementInteractionUI GameObject - has UIDocument + SettlementInteractionUI component
The SettlementUIBridge is trying to find SettlementInteractionUI on the same GameObject, but they're on different GameObjects!
Solution: Move SettlementUIBridge
Step 1: Remove SettlementUIBridge from SettlementInteractionManager GameObject
- Select the SettlementInteractionManager GameObject in the hierarchy
- Find the SettlementUIBridge component
- Right-click on it and select Remove Component
Step 2: Add SettlementUIBridge to SettlementInteractionUI GameObject
- Select the SettlementInteractionUI GameObject in the hierarchy
- Click Add Component
- Search for SettlementUIBridge and add it
- The component will automatically find the SettlementInteractionUI on the same GameObject
Step 3: Verify Setup
After making this change, when you play the game you should see:
[UIBridge] Connected to SettlementInteractionUI
Step 4: Test Settlement Detection
- Move your TeamMarker near a settlement
- The UI should now properly show/hide based on proximity
- The settlement name should display the actual settlement name instead of "Settlement Name"
Alternative Solution: Move SettlementInteractionUI Component
If you prefer to keep everything on the SettlementInteractionManager GameObject:
- Select the SettlementInteractionUI GameObject
- Copy the UIDocument component settings (note the UXML file reference)
- Copy the SettlementInteractionUI component settings
- Delete the SettlementInteractionUI GameObject
- On the SettlementInteractionManager GameObject:
- Add UIDocument component
- Set the UXML file reference
- Add SettlementInteractionUI component
- Configure the component settings
Expected Result
After either fix, you should see:
[UIBridge] Connected to SettlementInteractionUI in console
- Settlement UI shows actual settlement names
- UI appears/disappears when moving near/away from settlements
- E key works to enter settlements