简体   繁体   中英

Why does my 3D object not show in my Unity canvas?

I'm using a canvas to show InformationText on the screen. This works perfectly fine. However, when I try to put a 3D object in my canvas, it doesn't show. Can somebody tell me why?

I'm using Unity 2019.2.12f1

My canvas: 帆布

My Main Camera: 主摄像头

My MarkerModel标记模型

The Game游戏画面

I added a camera to my 3D-object. This fixed the problem for me!

Set canvas to world space

画布选项

and put canvas near your 3D object and move camera to make object and canvas visible

场景视图 游戏视图

I built a scene with same configuration as you and find out the problem. Your camera size is very small to get your 3D object. so increase your camera size or change canvas settings from screen space-overal to screen space-camera and also check z position of objects.Hera is the picture of my scene, see camera bounds in it: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM