Page 1 of 1

how to implement Editor Plugin

Posted: Thu Jan 25, 2018 9:48 am
by arvind_ari
How do i implement Editor Plugin with forgejs to add new hotspot dynamically in scene.
I need a example how to implement it

Re: how to implement Editor Plugin

Posted: Tue Mar 27, 2018 8:12 am
by bbaudel
Hi and sorry for this answer delay.

You have to instanciate the editor plugin into your project like this:

Code: Select all

{
    "story":
    {
        ...
    },

    "plugins":
    {
        "prefix": "../../plugins/",

        "engines":
        [
            {
                "uid": "org.forgejs.editor",
                "url": "Editor/"
            }
        ],

        "instances":
        [
            {
                "uid": "editor",
                "engine": "org.forgejs.editor"
            }
        ]
    }
}


The editor is available into the downloadable package or into this repository : https://github.com/gopro/forgejs-plugins
A sample is available into the downloadable package or into this repository : https://github.com/gopro/forgejs-samples