Options that can be passed to VisionOSWebView.CreateInWindow() or VisionOSWindow.Open() to customize the window's size and/or position.
The VisionOSWindowsOptions.Size and Position options require visionOS 2.0. On visionOS 1.x, the Size and Position options are ignored, and a window always uses the system's default size and position.
visionOS 2.x has a bug where if the specified window position is relative to a bounded scene (e.g. RelativeWindowID = UnityBoundedSceneID), the window may not appear if the specified size is significantly smaller than the default size. For example, the window will appear using the default size or a size of 1000 x 1000 px, but may not appear using a size of 600 x 600 px. If you encounter an issue where the window isn't appearing, try using the default size or a larger size instead.
VisionOSWindowPosition Position
The window's initial position. The default value is null
, which causes the system's default window position (in front of the user) to be used.
Vector2Int Size
The window's initial size, in pixels. The default value is Vector2Int.zero, which causes the system's default window size (1280 x 720 px) to be used.