(Used what created from Simple Dialogue System tutorial)
In widget:
+ Animation, name as Fade In Out
+Track, choose the image layer
click +Track, render opacity
Add 3 keyframes:
opacity 0@0s, 1@0.25s, 0@0.50s
Go to event graph:
In NPC BP, add a collision box in front of the mesh (for position the player stand in front of NPC)
Add TextRender (name hit 1 to talk)
attach a cone child under the mesh, scale down (as a ref point to teleport the player to stand)
set no collision and hidden in game
Add a camera out of mesh (leave its transform and location, will do in nodes variables)
Go to construction script
promote variable from new transform input of Set Relative Transform node, tick instance editable in details
repeat the same on cone node for location
finalize as below (now if drag the NPC in scene, can adjust camera position in Details parameters)
Test by using below default values in construction script:
Go to event graph, paste the BP nodes from below link
And replace the error nodes based on the following tutorial suggested:
Doesn’t work of the BP above