This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::UlonNode Class

Header: #include <UnigineUlon.h>
Read More

UlonNode Class

Members


UlonNode ( ) #

Constructor. Creates a ULON node.

bool load ( const char * path ) #

Loads ULON-data from the specified file and sets the current ULON node to be the root of the parsed hierarchy.

Arguments

  • const char * path - Path to the file containing ULON description.

Return value

true if ULON-data from the specified file is read successfully; otherwise, false.

Vector< Ptr<UlonNode> > getChildren ( ) #

Returns the list of all children of the ULON node.

Return value

List of all ULON node's children.

const char * getType ( ) #

Returns the type of the ULON node.

Return value

ULON node type.

const char * getName ( ) #

Returns the name of the ULON node.

Return value

ULON node name.

const char * getCondition ( ) #

Returns a condition set for the ULON node.
Notice
Conditions are not parsed and executed automatically, processing of conditions is the responsibility of the user of the ULON format (e.g. in case of materials UnigineScript and UUSL are used).

Return value

condition set for the ULON node.

Ptr<UlonValue> getValue ( ) #

Returns the value of the ULON node.

Return value

ULON node value.

Vector< Ptr<UlonArg> > getArgs ( ) #

Returns the list of all arguments of the ULON node.

Return value

List of all arguments of the ULON node.

bool isArg ( const char * name ) #

Checks whether an argument with a given name exists.

Arguments

  • const char * name - Name of the argument to be checked.

Return value

true if an argument with the specified name exists; otherwise, false.

float getArgFloat ( const char * name, float ret = 0 ) #

Returns the value of the ULON node argument with the specified name as a float.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • float ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

Float value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

int getArgInt ( const char * name, int ret = 0 ) #

Returns the value of the ULON node argument with the specified name as an integer.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • int ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

Integer value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

long long getArgLong ( const char * name, long long ret = 0 ) #

Returns the value of the ULON node argument with the specified name as a 64-bit long long.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • long long ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

64-bit long long value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

bool getArgBool ( const char * name, bool ret = false ) #

Returns the value of the ULON node argument with the specified name as a boolean.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • bool ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

Boolean value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

char getArgChar ( const char * name, char ret = 0 ) #

Returns the value of the ULON node argument with the specified name as a char.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • char ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

Char value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

const char * getArgStr ( const char * name, const char * ret = "" ) #

Returns the value of the ULON node argument with the specified name as a string.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.
  • const char * ret - Default value to be returned if a ULON node argument with the specified name is not found.

Return value

String value of the ULON node argument, if it exists; otherwise a default value set via the ret parameter.

Vector< String > getArgArray ( const char * name ) #

Returns the value of the ULON node argument with the specified name as an array of strings.
Notice
To check, if an argument exists, use the isArg() method.

Arguments

  • const char * name - Argument name.

Return value

Array of strings representing elements of the array value, if it exists; otherwise an empty string array.

void printUnusedData ( const char * name ) #

Prints warnings of unused data (node values and arguments) for the file with the specified name to the Console for debugging.

Arguments

  • const char * name - File name.

void clearUnusedData ( ) #

Clears all unused node data (node values and arguments).
Last update: 10.04.2020
Build: ()