Here you can find a Unity plugin to enable magic of Fuffr in your game. There's also a preconfigured example project included to get you up and running in few minutes.
Please note that Fuffr relies on a native code to handle and communicate with hardware, hence currently only supports iOS and is not possible to test in Unity editor. You will need to export your project to iOS to experience Fuffr.
Fuffr relies on Bluetooth to communicate with your phone, so there're two extra steps required for the Xcode project to be able to build successfully after Unity export.
Here's a step by step guide:
- Open the project in Unity.
- Select iOS in File > Build Settings...
- Build
- Open generated Xcode project
- Under "Build Phases/Link Binary With Libraries" click "+" and add "CoreBluetooth.framework".
- Under "Build Settings/Linking/Other Linker Flags" add "-ObjC" (without the quote marks).
- Double click on
FuffrUnityPlugin.unitypackageand import it to your project - If you'd like to quickly test Fuffr, drag
FuffrCubeprefab located inPlugins/Fuffrto your game scene. - To start listening and subscribe to touch events coming from Fuffr hardware in your own game object, look at
Start()method insideFuffrCube.csfor an example. - Use iOS Player export to generate Xcode project
- Follow steps 5 & 6 from Running example project section above to complete setup.