Skip to content

Latest commit

 

History

History
105 lines (73 loc) · 2.21 KB

DEVELOPMENT.md

File metadata and controls

105 lines (73 loc) · 2.21 KB

Development

Building plugin (step by step)

Install requirements

  1. Require UNIGINE SDK Browser Pluging for scripting by python3 in Unigine Editor https://unigine.com/get-unigine/

  2. Require System Packages

Ubuntu/Debian:

$ sudo apt install qt5-default cmake gcc git-core

Windows:

  • install cmake >= 3.20
  • install Visual Studio 2017
  • install qt 5.12.x (And set system environment variable QTDIR=C:\Qt\Qt5.12.3\5.12.3\)
  • install python3 (for command scripts)

step 1: create a empty project

Use a UNIGINE SDK Browser and create some empty project, for example my_project

my_project folder - where you can see data and with bin and with include and launchers

step 2: clone the sources

Ubuntu/Debian:

$ cd my_project
$ git clone https://github.com/unigine-plugins/unigine-editor-python3scripting
$ cd unigine-editor-python3scripting 
$ cp -rf * ../

step 3: build python-3.10.1

Ubuntu/Debian:

$ cd my_project
$ cd UnigineEditorPlugin_Python3Scripting
$ ./build_python.sh

Windows (Visual Studio 2017):

> cd my_project
> cd UnigineEditorPlugin_Python3Scripting
> build_python.bat

step 4: build plugin

Ubuntu/Debian:

$ cd my_project
$ cd UnigineEditorPlugin_Python3Scripting
$ python3 build_plugin.py

Windows:

$ cd my_project
$ cd UnigineEditorPlugin_Python3Scripting
$ python3 build_plugin.py

step 5: run editor

After this call ./launch_editor.sh or launch editor from UNIGINE SDK Browser

After this call ./launch_editor.bat

Helpful links

Here can find wrappers:

New type (class)

Mp4 to gif

Generate Python Wrappers Classes

$ python3 -m pip install CppHeaderParser
$ ./generate_pytypeobjects.sh