plugin for store.unigine.com
The plugin allows switching between all existing cameras by pressing the c
button.
This plugin works with float/double precision on windows/linux.
-
Add GorbatovCameraSwitcher in the
-extern_plugin
startup comand-line args. For example: -extern_plugin UnigineFbxImporter,GorbatovCameraSwitcher -
Call the plugin from code by adding
Engine::get()->addPlugin("GorbatovCameraSwitcher");
-
Add plugin's sources in your project build and call
Engine::get()->addPlugin(new CameraSwitcherPlugin());
- copy this repo in your porject or install the package from assetstore
- use cmake to build. For example for debug-double use this commands
cmake -B ./build-debug-double -S source/plugins/Gorbatov/CameraSwitcher -DUNIGINE_DOUBLE=1 -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build-debug-double