Attention: Here be dragons (unstable version)

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Redot.

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.