Jump to content

Recommended Posts

How will it work?

 

It will be files, .swplugins, written in c#, that will handle new functionnalities for the SD. Here is a little example of a plugin, that adds an "about" category which contains an option to open www.skillwarz.com :

 

#CODE

 

using UnityEngine;

 

public class SWPluginExample : MonoBehavior {

 

    Category newAboutCategory;

    SubCategory aboutSC;

 

    private void Start() {

 

        newAboutCategory = new Category();

        newAboutCategory.categoryName = "About";

       

        aboutSC = new SubCategory();

        newAboutCategory.AppendSC(aboutSC);

 

        SCOption skillwarzLink = aboutSC.NewOption();

        skillwarzLink.scOptionName = "skillwarz.com";

        skillwarzLink.onclick = () => {

           

            //Open Browser

 

        };

    }

}

 

#ENDCODE

 

⚠️ THIS TOPIC IS GOING TO HAVE MORE POSTS IN THE FUTURE ⚠️

 

 

       

Edited by VipereSolide
  • Like 1
  • Confused 3
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.