This page has been translated automatically.
Setting Up Development Environment
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
Double Precision Coordinates
Bounds-Related Classes
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Fields Class

Implements and describes field methods of the entity.

The Fields class implementation can be found in the data/framework/game/fields.h file.

Fields Class


Fields (variable instance)

Constructor. Creates a Fields class instance.


  • variable instance - A user class instance with fields methods or a user class name.

string getClassName ()

Returns a class name.

Return value

Class name.

string getBaseName ()

Returns a parent class name.

Return value

Parent class name.

int getNumFields ()

Returns the number of the class fields.

Return value

Number of class fields.

Field getField (variable index)

Returns a class field by its index.


  • variable index - Field number if index is an integer; field name if the index is a string.

Return value

Class field.
Last update: 2017-07-03
Build: ()