API reference

PanelShape

PanelShape

class PanelShapeconstructor(scene: Scene, options: PanelConfigOptions2, val panelSurface: PanelSurface, sceneObject: SceneObject, var config: PanelShapeConfig? = null)
Creates and manages the 3D shape of a panel.
PanelShape is responsible for creating the appropriate mesh and layer for a panel based on the provided configuration. It handles different panel geometries (quad, cylinder, equirect) and manages the associated layers for high-fidelity rendering.

Constructors

NameSummary
PanelShape
constructor(scene: Scene, config: PanelShapeConfig, panelSurface: PanelSurface, sceneObject: SceneObject)constructor(scene: Scene, options: PanelConfigOptions2, panelSurface: PanelSurface, sceneObject: SceneObject, config: PanelShapeConfig? = null)

Properties

NameSummary
config
var config: PanelShapeConfig?
layer
var layer: SceneLayer?
options
lateinit var options: PanelConfigOptions2
panelSurface
val panelSurface: PanelSurface
scale
var scale: Vector3

Functions

NameSummary
destroy
fun destroy()