Giter Club home page Giter Club logo

discord-rpc-unity's Introduction

Discord RPC Unity

GitHub package.json version
This package provides a wrapper for lachee/discord-rpc-csharp and a better experience when intergrating with Unity3D, as well as solving some tricky annoyances such as named pipes and mono.

Usage

Add the package to your project and look at the sample code. For more documentation about the RPC, check the discord-rpc-csharp documentation

Check out the documentation at https://lachee.github.io/discord-rpc-unity/

Dependencies

  • At least Unity 2018, however:

    • Support is only given down to Unity 2018.4.36f1 LTS
    • Support is only given up to the latest LTS
  • Newtonsoft.JSON 13

    • This is provided by com.unity.nuget.newtonsoft-json
    • this determines the 2018.4 min spec. You can go lower, but you need to supply your own newtonsoft.json 13.0 binary.

Installation

OpenUPM

The openupm registry is a open source package manager for Unity and provides the openupm-cli to manage your dependencies.

openupm add com.lachee.discordrpc

Manual UPM GitHub package.json version

Use the Unity Package Manager to add a git package. Adding the git to your UPM will limit updates as Unity will not track versioning on git projects (even though they totally could with tags).

  1. Open the Unity Package Manager and Add Package by git URL...
  2. https://github.com/Lachee/discord-rpc-unity.git

For local editable versions, manually clone the repo into your package folder. Note the exact spelling on destination name.

  1. git clone https://github.com/Lachee/discord-rpc-unity.git Packages/com.lachee.discordrpc

Unity Package

Go old school and download the Unity Package and import it into your project.

  1. Download the .unitypackage from the Releases or via the last run Create Release action.
  2. Import that package into your Unity3D

Logging

By default, the DiscordManager will log to the Unity Console while in the Editor. To enable logging in builds, create a Development Build and a new discordrpc.log file will be generated with your app when it runs.

discord-rpc-unity's People

Contributors

lachee 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.