Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

OpenXRCompositionLayerCylinderยถ

Experimental: This class may be changed or removed in future versions.

Inherits: OpenXRCompositionLayer < Node3D < Node < Object

An OpenXR composition layer that is rendered as an internal slice of a cylinder.

Descriptionยถ

An OpenXR composition layer that allows rendering a SubViewport on an internal slice of a cylinder.

Propertiesยถ

float

aspect_ratio

1.0

float

central_angle

1.5708

int

fallback_segments

10

float

radius

1.0


Property Descriptionsยถ

float aspect_ratio = 1.0 ๐Ÿ”—

  • void set_aspect_ratio(value: float)

  • float get_aspect_ratio()

The aspect ratio of the slice. Used to set the height relative to the width.


float central_angle = 1.5708 ๐Ÿ”—

  • void set_central_angle(value: float)

  • float get_central_angle()

The central angle of the cylinder. Used to set the width.


int fallback_segments = 10 ๐Ÿ”—

  • void set_fallback_segments(value: int)

  • int get_fallback_segments()

The number of segments to use in the fallback mesh.


float radius = 1.0 ๐Ÿ”—

  • void set_radius(value: float)

  • float get_radius()

The radius of the cylinder.