4.6学习计划:1.图标没有显示背景设定,
2.图标x,y,z轴信息定位。(未完成)
ans:
一:HoloLens背景设为透明:
1.选中层次面板中的主相机
2.在检查器面板中,找到Clear Flags,选择Skybox,
3.设置Backgroun为(0,0,0,),
ps:因为在HoloLens中,黑色呈现为透明。
二:
三:操作3D对象
1,。添加组件—Manipulation handler—
1)(用户可更改大小)two handed manipulation type:scale
缩放
2)(给模型添加颜色)
sdk–StandarAssets–materials-
选择一个拖到方块上,
3)(移动限制为固定距离–选择修复距离,随头而动)
Constraint on Movement----fix Distance from head
4)通过跟踪的手访问和吸引对象
1.Manipulation handler中—Allow Far Manipulation Type复选框被选中
2.添加近交互Grabbable,
直接添加组件----Near Interaction Grabbable
5)围绕对象中心围绕近和远交互进行旋转
Manipulation handler中—
1)one hand rotation mode near—
rotate about object center
2)one hand rotation mode far—
rotate about object center
6)添加边界框(ps411页)
1.选择对象
2.添加组件Box Collider
3.添加组件boundingbox
4.在资源里面搜索boundingbox
将 MRTK_BoundingBox_ScaleHandle prefab 拖到 “prefab” 槽中的刻度控点,
并将 MRTK_BoundingBox_RotateHandle prefab 拖到 “捆绑箱” 组件上的旋转控点槽。