GithubHelp home page GithubHelp logo

mythetian / vam-plugin-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acidbubbles/vam-plugin-template

0.0 1.0 0.0 20 KB

A template for Virt-A-Mate plugins (using vscode)

License: MIT License

C# 100.00%

vam-plugin-template's Introduction

Virt-A-Mate Plugin Template for VSCode

What you will need

Get this template

First of all, decide what your author name will be, and what your plugin name will be. From now on, replace Author and MyPlugin by your selected name. I suggest your keep those simple without any special characters.

  • If you have a GitHub account (recommended), click on Use this template on the vam-plugin-template. It will create your own copy. You can also download this repository.
  • Clone (or unzip) this repo under (VaM install path)\Custom\Scripts\Author\MyPlugin, replacing Author and MyPlugin by yours, so that the MyPlugin.cs is directly under the MyPlugin folder.

You should now be able to open the project in vscode by using File, Open Folder and select the MyPlugin folder.

Adapt the template

  • Rename the MyPlugin.cs and MyPlugin.csproj to match your plugin name.
  • Replace in files (ctrl + shift + h) all occurences of Author and MyPlugin by yours.
  • In meta.json, fill in the description (keep v0.0.0 if you plan on using GitHub Actions), credits, instructions and promotionalLink. You might also want to chage the licenseType, if you wish.
  • Replace the content of README.md by your own content.
  • Replace the author name in LICENSE.md file to put your own name (it's all right, you have my blessing!)

About MVRScript

The plugin is really a Unity MonoBehavior, which means you can use methods like Update, FixedUpdate, OnEnable, OnDisable and OnDestroy. Init however is called by Virt-A-Mate.

Keep in mind however that OnEnable will be called before Init.

Validate locally

You can run dotnet build in the plugin folder, and it'll show you any compilation errors. This is faster than going in VaM to do so! I recommend installing .NET 5 or more recent.

Package var using GitHub Actions

If you use GitHub, you can push a tag with the naming convention v0.0.0, and it will automatically create a release draft. You can then edit it (e.g. add a description) and publish it.

Learning about Git

There are tons of references out there, you might want to look at GitHub Learning Lab. Learning Git is really worth your time.

License

MIT

vam-plugin-template's People

Contributors

acidbubbles avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.