API reference
API reference
Select your platform
No SDKs available
No versions available

PanelShape Class

Modifiers: final
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.

Signature

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

Constructors

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

Properties

[Get][Set]
Signature
var config: PanelShapeConfig?
layer : SceneLayer?
[Get][Set]
Signature
var layer: SceneLayer?
[Get][Set]
Signature
lateinit var options: PanelConfigOptions2
panelSurface : PanelSurface
[Get]
Signature
val panelSurface: PanelSurface
scale : Vector3
[Get][Set]
Signature
var scale: Vector3

Functions

destroy ()
Signature
fun destroy()
Did you find this page helpful?
Thumbs up icon
Thumbs down icon