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
- Create new Verse file “test_npc_behavior”:
- use “NPC Behavior” template
- 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)
- Create New NPC Character Definition and name it “TEST_Character_Definition”
- 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”
- Inside BP_Test_Character:
- add Static Mesh Component
- inside SM component set its Static Mesh to “Cube”
- set SM component Location Z = 80.0
- Inside NPC Spawner set NPC Character definition to TEST_Character_Definition
- Add Trigger To a World
- Plug NPC Spawner “Spawn” function to Triggers “Trigger” event
- Launch Editor Session
- Notice that our new NPC “character” is visible
- Start the game.
- NOTICE that NPC Character is NOT visible.
- NOTICE that if you check “ShowAIDebug” under NPC hebavior script override you can see that NPC navigates correctly around.
- 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