当前位置:网站首页>Ue5 split screen (small map) solution

Ue5 split screen (small map) solution

2022-07-24 03:08:00 Blindfold to see the world

UE5 Split screen ( Mini Map ) Solutions for

How to make a small map in the upper left corner of the game , Take the third person project as an example , Briefly explain how to pass UI Present camera content , Achieve the rendering effect of small map .

One 、 open BP_ThirdPersonCharacter class , edit

add to SceneCaptureCompoment2D Components , Used to collect scene images .

Hang the camera on Mesh On the character model , Let it follow people

Two 、 And then UI folders creating RenderTarget

Then choose TopRenderTarget2D object , Right click to create Material

3、 ... and 、 Set related properties

stay TopRenderTarget2D Set the size of the rendered image , I set it as 512*512

  Double click to open edit TopRenderTarget2D_Mat, Put it MaterialDomain Set to UserInterface

After this switching , There will be errors

  Check it out. , original Yes to set to LineColor

  So there's no mistake , Save it directly .

3、 ... and 、 stay UI Show the effect

Create a new UIWidget, Name it UI_Test

  stay Widget Create one in Image

  Set up Image The size is 512*512, And will TopRenderTarget2D_Mat Attached to Image

 

Four 、 In the level blueprint , take UI Load it out

  Run to see the effect

The upper left corner follows the real-time update of the character , To achieve results .

Project address :UE5 Split screen ( Mini Map ) Solutions for

原网站

版权声明
本文为[Blindfold to see the world]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207222326175576.html