Unigine::WorldSwitcher Class
Header: | #include <UnigineWorlds.h> |
Inherits from: | Node |
Interface for world switcher handling. See also the UnigineScript analog.
See Also#
A set of UnigineScript API samples located in the <UnigineSDK>/data/samples/worlds/ folder:
- switcher_00
- switcher_01
WorldSwitcher Class
Members
static WorldSwitcherPtr create ( ) #
Constructor. Creates a world switcher.void setMaxDistance ( float distance ) #
Sets the maximum distance of visibility. If a camera is further from a node than this maximum distance, a node is not visible. The default is inf.Arguments
- float distance - Maximum distance of visibility in units.
float getMaxDistance ( ) const#
Returns the current maximum distance of visibility. If a camera is further from a node than this maximum distance, a node is not visible. The default is inf.Return value
Maximum distance of visibility in units.void setMinDistance ( float distance ) #
Sets the minimum distance of visibility. If a camera is closer to a node than this minimum distance, a node is not visible. The default is -inf.Arguments
- float distance - Minimum distance of visibility in units.
float getMinDistance ( ) const#
Returns the current minimum distance of visibility. If a camera is closer to a node than this minimum distance, a node is not visible. The default is -inf.Return value
Minimum distance of visibility in units.static int type ( ) #
Last update:
16.08.2024
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter