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
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
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
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::WorldExternBase Class

Header: #include <UnigineWorld.h>
Inherits: Base

Unigine Base WorldExtern class.

To use this class, include the UnigineWorldExtern.h file.

WorldExternBase Class

Members


int getClassID ( ) #

Returns a unique class ID.

Return value

Unique class ID.

Ptr<Node> getNode ( ) #

Returns the Node smart pointer.

Return value

Node smart pointer.

Ptr<WorldExtern> getWorldExtern ( ) #

Returns the WorldExtern smart pointer.

Return value

WorldExtern smart pointer.

int loadWorld ( const Ptr<Xml> & xml ) #

Loads a world state from the Xml.

Arguments

  • const Ptr<Xml> & xml - Xml smart pointer.

Return value

Returns 1 if the world state was successfully loaded; otherwise, 0.

void preRender ( float ifps ) #

Arguments

  • float ifps

void renderHandler ( ) #

Renders the handler for the external world.

void renderVisualizer ( ) #

Renders the visualizer.
Notice
You should enable the engine visualizer by the show_visualizer 1 console command.

int restoreState ( const Ptr<Stream> & stream ) #

Restores a world state from the stream.
Warning
This function is deprecated and will be removed in the next release.

Arguments

  • const Ptr<Stream> & stream - Stream smart pointer.

Return value

1 if the world state was successfully restored; otherwise, 0.

int saveState ( const Ptr<Stream> & stream ) #

Saves a world state into the stream.
Warning
This function is deprecated and will be removed in the next release.

Arguments

  • const Ptr<Stream> & stream - Stream smart pointer.

Return value

Returns 1 if the world state was successfully saved; otherwise, 0.

int saveWorld ( const Ptr<Xml> & xml ) #

Saves a world state into the Xml.

Arguments

  • const Ptr<Xml> & xml - Xml smart pointer.

Return value

1 if the world state was successfully saved; otherwise, 0.

void update ( float ifps ) #

Update function. It is called when the node is visible.

Arguments

  • float ifps - Inverse FPS value.

void updateEnabled ( ) #

Updates enabled.

void updatePosition ( ) #

Updates a position of the external world.

void updateTransform ( ) #

Updates transformation matrix of the external world.
Last update: 2019-12-25
Build: ()