Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

var

  • Last UpdatedApr 24, 2024
  • 1 minute read

This topic is about the var data type.

Value syntax

var avatar = Runtime::Scene.GetNode("Player0_Avatar");

Description

The var type is a special type used for object creation or instancing. It allows to infer the type of the variable from the expression on the right side of the initialization statement. The inferred type may be a node or an instance of a class. See ScriptObject for further details. See Runtime::Scene for further examples on the use of var.

The default value is null.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in