Git Product home page Git Product logo

unitywifidirect's Introduction

UnityWifiDirect

Adds Wifi Direct capability to Android Unity3d builds

Provides a C# wrapper around the Wifi-Buddy project

Using the library

Copy the Unity3d/Plugins folder into your Assets folder, and create a C# class that inherits from WifiDirectBase.cs

Doxygen files are hosted here

An example that uses Wifi-Direct to change the color of a cube is available here.

Please note: all peers should both broadcast and search to connect

Build Instructions

Building the Android library:

  1. Directory ./Android is already a Android Studio Gradle project, just import it into Android Studio
  2. Use the build button in the Android Studio menu bar (the gradle file has been pre-configured)
  3. Go into the "app-debug.aar" file in the app/build/outputs/aar/ folder
  4. Open the aar with 7zip and delete the "res" folder
  5. Inside the aar delete the 'R.txt' file
  6. Open "lib" folder in the aar and delete "unity.jar"
  7. Copy the android-support-v4.jar file from the Android SDK install location into "libs" inside the aar
  8. Copy the .aar into (your Unity3d project)/Assets/Plugins/Android and rename it "UnityWifiDirect.aar", and make sure WifiDirectBase.cs is inside Assets/Plugins
  9. Folow the instructions in the "Using the Library" section above

unitywifidirect's People

Contributors

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