Class Viewport3D

Class Hierarchy

Use the Viewport 3D node to render 2D nodes in 3D space.

Kanzi creates a texture from the 2D prefab that you set a Viewport 3D node to render. The Viewport 3D renders that texture on a plane mesh. To render the texture, you can use any material that supports the rendering of textures.

In the Viewport 3D node, you can use the Node::WidthProperty and Node::HeightProperty to set the size of the plane on which the Viewport 3D renders the texture.

Since Kanzi 3.9.6 replaced MaterialProperty with OverrideMaterialProperty and added PrefabTextureProperty.

Use a Viewport 3D to display 2D objects in 3D space.

Inherits properties and message types from Viewport3DMetadata.

Synopsis

Methods
create()

Creates a viewport

Viewport3D.Viewport3D:create(name)

Creates a viewport.

Parameters
name (string)

Node name.