Version: 5.6
public static void SetFocusPointForFrame (Vector3 position);
public static void SetFocusPointForFrame (Vector3 position, Vector3 normal);
public static void SetFocusPointForFrame (Vector3 position, Vector3 normal, Vector3 velocity);

パラメーター

position The position of the focal point in the scene, relative to the camera.
normal Surface normal of the plane being viewed at the focal point.
velocity A vector that describes how the focus point is moving in the scene at this point in time. This allows the HoloLens to compensate for both your head movement and the movement of the object in the scene.

説明

Sets a point in 3d space that is the focal point of the scene for the user for this frame. This helps improve the visual fidelity of content around this point. This must be set every frame.

The point may be moving through space, the normal indicates the direction that the point is moving.

The HoloLens will attempt to compensate for movement in the display around the focal plane / focal point in the scene. You can help the system along by providing information about how the focal point is moving.

As an example, if your focus point is following a character as he jumps around your living room, the HoloLens is attempting to compensate only for the motion of your head as it is moving relative to the focal point. The HoloLens will not be factoring in the motion of the character the user is most likely focusing on at this point in time. By providing a normal and a velocity to help inform on how the character is moving within the scene the HoloLens can better compensate and bring greater visual fidelity to the character as he moves around your scene.

Specifying the content in focus is body locked will improve the fidelity of body locked content at the expense of content not locked to the body. This is especially apparent as the user translates.

You can visualize the focus point / plane in the web interface for the HoloLens.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961