Struct VolumeCamera.WindowState
Struct to encapsulate a change in window state.
Inherited Members
Namespace: Unity.PolySpatial
Assembly: Unity.PolySpatial.dll
Syntax
public struct VolumeCamera.WindowState
Fields
ContentDimensions
The dimensions that your Volume Camera's dimensions are mapped to, in Unity's coordinate units. (On visionOS, these will typically be the same, but they may not be on other platforms.)
Declaration
public Vector3 ContentDimensions
Field Value
Type | Description |
---|---|
Vector3 |
IsFocused
When windowEvent is set to WindowEvent.Focused, this will indicate whether it has received focus or lost it.
Declaration
public bool IsFocused
Field Value
Type | Description |
---|---|
bool |
Mode
The mode this volume camera will display its content in, Bounded or Unbounded.
Declaration
public VolumeCamera.PolySpatialVolumeCameraMode Mode
Field Value
Type | Description |
---|---|
VolumeCamera.PolySpatialVolumeCameraMode |
OutputDimensions
The actual dimensions of the window in world space, or Vector3.zero
if the volume is unbounded.
Declaration
public Vector3 OutputDimensions
Field Value
Type | Description |
---|---|
Vector3 |
WindowEvent
The change in state that just occurred for this window. Change of states can mean actions such as the window was opened or the window was backgrounded.
Declaration
public VolumeCamera.WindowEvent WindowEvent
Field Value
Type | Description |
---|---|
VolumeCamera.WindowEvent |