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(scene: Scene, val config: PanelShapeConfig, var panelSurface: PanelSurface, val sceneObject: SceneObject)

Constructors

PanelShape ( scene , config , panelSurface , sceneObject )
Signature
constructor(scene: Scene, config: PanelShapeConfig, panelSurface: PanelSurface, sceneObject: SceneObject)
Parameters
scene: Scene
panelSurface: PanelSurface
sceneObject: SceneObject
Returns

Properties

[Get]
Signature
val config: PanelShapeConfig
layer : SceneLayer?
[Get][Set]
Signature
var layer: SceneLayer?
panelSurface : PanelSurface
[Get][Set]
Signature
var panelSurface: PanelSurface
scale : Vector3
[Get][Set]
Signature
var scale: Vector3
sceneObject : SceneObject
[Get]
Signature
val sceneObject: SceneObject

Functions

destroy ()
Signature
fun destroy()
resize ( scene , newPanelSurface )
Signature
fun resize(scene: Scene, newPanelSurface: PanelSurface)
Parameters
scene: Scene
newPanelSurface: PanelSurface
Did you find this page helpful?