Kanzi  3.9.7
Kanzi Studio API
Screen Interface Reference

Get or set the first child 2D node of the Screen node. More...

Properties

Node2D PreviewRootLayer2D [get, set]
 Gets or sets the first child 2D node of the Screen node that the Preview uses. More...
 
Node2D RootNode2D [get, set]
 Gets or sets the first child 2D node of the Screen node. More...
 

Detailed Description

Get or set the first child 2D node of the Screen node.

Property Documentation

Node2D PreviewRootLayer2D
getset

Gets or sets the first child 2D node of the Screen node that the Preview uses.

The first child 2D node of the Screen node that the Preview uses.

See also
Project.Screen
Node2D RootNode2D
getset

Gets or sets the first child 2D node of the Screen node.

The Screen node can have only one child node. This child node can be any 2D node.

The first child 2D node of the Screen node.

See also
Project.Screen

Examples

Get the first child 2D node of the Screen node:

public void Execute(PluginCommandParameter parameter)
{
// Get the 2D node under the Screen node.
var rootNode = studio.ActiveProject.Screen.RootNode2D;
// Print to the Log window the name of the 2D node under the Screen node.
studio.Log(rootNode.Name);
}