Custom Character in NPC Spawner is invisible in game.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Devices

Summary

Using Custom Character with Static Mesh component makes character mesh invisible IN GAME.
All visibility flags are set to Visible. Character Mesh is visible in Editor and Editor Session.
Character verse logic works, character navigates and moves correctly. Pawn player collision works.

Steps to Reproduce

  1. Create new Verse file “test_npc_behavior”:
  • use “NPC Behavior” template
  1. Add NPC Spawner to the world:
  • set Enabled at Game Start = TRUE
  • set NPC Script Override = test_npc_behavior (optional as we set it up in NPC Character Definition)
  1. Create New NPC Character Definition and name it “TEST_Character_Definition”
  2. Inside TEST_Character_Definition:
  • set Type = Custom
  • set Behavior = Verse Behaivor
  • set NPC Behavior Script = test_npc_behavior
  • add new NPC Character Modifier and set it to Cosmetic Modifier
  • set Character Look = Custom Character
  • you can skip Character Movement and Anim Preset as we don’t use it with our character BP
  • create NEW Character Blueprint using + button and name it “BP_Test_Character”
  1. Inside BP_Test_Character:
  • add Static Mesh Component
  • inside SM component set its Static Mesh to “Cube”
  • set SM component Location Z = 80.0
  1. Inside NPC Spawner set NPC Character definition to TEST_Character_Definition
  2. Add Trigger To a World
  3. Plug NPC Spawner “Spawn” function to Triggers “Trigger” event
  4. Launch Editor Session
  5. Notice that our new NPC “character” is visible
  6. Start the game.
  7. NOTICE that NPC Character is NOT visible.
  8. NOTICE that if you check “ShowAIDebug” under NPC hebavior script override you can see that NPC navigates correctly around.
  9. NOTICE that if you try to walk into our NPC (follow red debug dot on minimap in case of troubles) you can collide with it.

Expected Result

NPC custom mesh is visible in game

Observed Result

NPC custom mesh is NOT visible in game

Platform(s)

Tested on PC, windows

I also noticed that Custom Character works when you add Skeletal Mesh Component instead of Static Mesh Component - although it should work regardless of used component class.