Skip to content

scene.mesh

3 functions / 0 types

Index

FunctionDescription
getRead the current scene value, including ephemeral edits.
removeRemove this component without changing the node’s other component types.
setReplace this component without changing the node’s other component types.

get

get(args: { node: SceneNode }, transactionId?: string): Promise<SceneMesh | undefined>

Read the current scene value, including ephemeral edits.

Returns Promise<SceneMesh | undefined>.

node : SceneNode

The scene node, rather than an internal render entity.

transactionId optional : string

remove

remove(args: { node: SceneNode }, transactionId?: string): Promise<void>

Remove this component without changing the node’s other component types.

Returns Promise<void>.

node : SceneNode

The scene node, rather than an internal render entity.

transactionId optional : string

set

set(args: { mesh: SceneMesh; node: SceneNode }, transactionId?: string): Promise<void>

Replace this component without changing the node’s other component types.

Returns Promise<void>.

mesh : SceneMesh

The complete replacement value; optional fields use their component defaults.

node : SceneNode

The scene node, rather than an internal render entity.

transactionId optional : string