Giter Site home page Giter Site logo

andrievsky / nakama-unity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heroiclabs/nakama-unity

0.0 2.0 0.0 3.73 MB

Unity client for Nakama server.

Home Page: https://heroiclabs.com/docs/unity-client-guide

License: Apache License 2.0

C# 99.96% Lua 0.04%

nakama-unity's Introduction

Nakama Unity

Unity client for Nakama server.

Nakama is an open-source distributed server for social and realtime games. For more information have a look at the server documentation; and for a quick list of build targets run gradle tasks.

The client guide is available on the server documentation. The client reference documentation is deployed on gh-pages.

If you encounter any issues with the server you can generate diagnostics for us with nakama doctor. Send these to [email protected] or open an issue. If you experience any issues with the client, it can be useful to enable trace (.Trace(true)) to produce logs and open an issue.

### Start client

You can download the client directly from the Asset Store.

Have a look at the quickstart guide for a full introduction on how to get started with the client in development and/or production.

To create a client and connect to the Nakama server with the default settings:

using UnityEngine;
using System.Collections;
using Nakama;

public class NewBehaviourScript : MonoBehaviour {
  void Start() {
    INClient client = NClient.Default("defaultkey");
  }

  void Update() {
  }
}

Build Settings for Android

Nakama Unity Client requires the full .Net 2.0 runtime. In Unity Build Settings window, change API Compatibility Level to .Net 2.0.

In addition to above, you'll need to change Stripping Level to either "Disabled" or "Strip Assemblies". Alternatively you can add the link.xml to the Assets folder of your project which configures how the Linker strips down the generated code.

Build Settings for iOS

Nakama Unity Client requires the full .Net 2.0 runtime. In Unity Build Settings window, change API Compatibility Level to .Net 2.0.

Contribute

To build the codebase you will need to install these dependencies:

  • unity The Unity editor/compiler toolchain.
  • gradle A JVM-based build tool.
  • protobuf A toolchain used to create custom protocols.
  • doxygen A tool for generating documentation from annotated source.

You can then install code dependencies:

$> gradle nugetRestore

For development use the compile and test run cycle:

$> gradle nunit

To package a release use:

$> gradle unityPackage

Credits

The generated documentation theme is based on the work of @Velron.

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.