当前位置:网站首页>UE4_ Ue5 make 3dui follow the camera orientation (attached works)

UE4_ Ue5 make 3dui follow the camera orientation (attached works)

2022-06-22 18:51:00 Blindfold to see the world

UE4_UE5 Make 3DUI technological process ( Attached project )

One 、 establish Widget Control class :

Name it 3DUI

Two 、 establish UI Content :

3、 ... and 、 establish Actor Class to accept the display UI

 

  Name it :BP_My3DUI

Four 、 edit BP_My3DUI class , add to Widget Components

  On the right side Details add to Widget

5、 ... and 、 The edited classes are Compile adopt , And then BP_My3DUI Class drag and drop into the scene

Find out UI Position too high , Trim up :

Add a... To it Panel Used to adjust the position

The position has been adjusted , But not facing the camera .

6、 ... and 、 Set up UI Follow the camera , For simplicity , Write these blueprint scripts directly in the level blueprint :

First set the display mouse pointer :

Then, we will put BP_My3DUI Drag and drop into the level blueprint , Used to control rotation

  stay EventTick Event :

 

final result , You can see it in any direction UI Towards the camera .

Project address :

UE4_UE5 Make 3DUI And facing the camera -Swift Document resources -CSDN download

原网站

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