This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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

Members


Fields (variable instance)

Constructor. Creates a Fields class instance.

Arguments

  • 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.

Arguments

  • 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: ()