Please note that this project is no longer actively maintained or accepting Pull Requests. Please use the Unity Karting Game instead.
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.
You will need publish and subscribe keys to authenticate your app. Get your keys from the Admin Portal.
Clone the repository and use the files in there.
- Download and install Unity.
- In Unity, create a new 2d project called
pnquickstart
. - Clone this repository.
- In Unity Editor, open the
pnquickstart
project, navigate to Assets -> Import Package -> Custom Package and import theunity-pubnub-realtime-chat.unitypackage
file you can find in your cloned repository. - 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.
- Restart Unity editor.
All the files are included in the unity-pubnub-realtime-chat.unitypackage
file you imported. You don't need to add any other files.
-
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.
-
Submit a new entry.
If you need help or have a general question, contact [email protected].