HoloLens 如何实现UI正对摄像机

xiaoxiao2021-02-28  83

UI正对摄像机 

 在Canvas  把Canvas 中的 Render Mode属性调整为 World Space  然后再Canvas 上添加脚本 Billboard  这时候UI就会显示在摄像机前

 

 

Billboard.cs 和Tagalong.cs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tagalong 脚本是让模型跟着摄像机移动

转载请注明原文地址: https://www.6miu.com/read-72102.html

最新回复(0)