how to implement Editor Plugin

arvind_ari
Posts: 7
Joined: Thu Jan 25, 2018 8:31 am

how to implement Editor Plugin

Postby arvind_ari » Thu Jan 25, 2018 9:48 am

How do i implement Editor Plugin with forgejs to add new hotspot dynamically in scene.
I need a example how to implement it

User avatar
bbaudel
ForgeJS Team
Posts: 45
Joined: Wed Oct 26, 2016 9:20 am

Re: how to implement Editor Plugin

Postby bbaudel » Tue Mar 27, 2018 8:12 am

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

Who is online

Users browsing this forum: No registered users and 1 guest