Skip to content

Controlling Objects in Unity with AMQP

Michael Everett edited this page Mar 21, 2017 · 21 revisions

This tutorial demonstrates how to use the library to control the Position, Rotation, and Scale of an object in the scene using AMQP messages.

Prerequisites

Unity

First you will need to install the Unity3D.Amqp asset package into your project. For more instructions on how to get the asset package and import it into a new project please see the Quick Start tutorial.

RabbitMQ Server

You will need access to a RabbitMQ server for this tutorial. This tutorial assumes a local install of RabbitMQ server, but you could also use a hosted version such as CloudAMQP (who offer a free tier). If you are going to use a hosted service like CloudAMQP then please refer to the README as it explains some of the differences in port configuration and SSL usage that will differ from this tutorial.

Getting Started

Once you have imported the package into your project, locate the example scene ObjectControlDemo:

locate scene

scene opened

Configuring AMQP Connections

Before you can use the AMQP library you will need to ensure at least one connection has been written to your project.

From Unity's file menu, select: AMQP → Configuration

scene opened

This tutorial will assume you have the default install of RabbitMQ server installed on your localhost with the default guest/guest admin user installed.

Clone this wiki locally