Skip to content

pubnub/Unity-Realtime-Chat-Room-Tutorial

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PubNub Unity Sample App

This repository contains the files required to run the PubNub Unity Quickstart.

PubNub takes care of the infrastructure and APIs needed for the realtime communication layer of your application. Work on your app's logic and let PubNub handle sending and receiving data across the world in less than 100ms.

Get keys

You will need publish and subscribe keys to authenticate your app. Get your keys from the Admin Portal.

Set up the project

Clone the repository and use the files in there.

  1. Download and install Unity.
  2. In Unity, create a new 2d project called pnquickstart.
  3. Clone this repository.
  4. In Unity Editor, open the pnquickstart project, navigate to Assets -> Import Package -> Custom Package and import the unity-pubnub-realtime-chat.unitypackage file you can find in your cloned repository.
  5. Navigate to Window -> General -> Test Runner, click the 3 vertical dots icon next to the window close button and click Enable playmode tests for all assemblies.
  6. Restart Unity editor.

Add project files

All the files are included in the unity-pubnub-realtime-chat.unitypackage file you imported. You don't need to add any other files.

Run the app

  1. Navigate to Assets -> Scenes, double-click the RealtimeChat.unity scene, and click the Run button.

    The chat messages will appear in the middle of the screen and are removed from the UI once they no longer fit on the screen.

    The UI is simple but uses a list view that cleanly displays each event.

  2. Submit a new entry.

Documentation

Support

If you need help or have a general question, contact support@pubnub.com.

About

A realtime unity chat room for iOS, Android, web and others.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages