Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)

Introducing Open-Source Unity Sample App Code - accepting contributions!

stevenxu
stevenxu Posts: 612 👻
edited April 5 in Announcements #1

This month, we are very excited to announce that we publicly launched open-source code for Camera Kit with Unity. This Unity sample project wraps the Camera Kit iOS and Android SDKs and can launch Camera Kit experiences. This includes the ability to launch a lens in parallel with your Unity scene and communicate in real time with the active Lens using our local communication pathways. The project leverages Unity as a Library which is typically used when a developer has an existing iOS or Android application but we have added post-processing logic that ensures you won't need to write native code (Swift/Kotlin) in order to take advantage of Camera Kit, and will be able to build your experience using only managed C# code.

Why Unity support?
Listening closely to your feedback, we consistently heard one particular request – Unity support. We learned that many of you wanted to integrate Camera Kit into both iOS and Android apps without the need for extensive native development skills. By introducing this solution, we aim to make Camera Kit accessible to more developers, allowing you to focus on AR content creation without the hurdles of acquiring new skill sets for iOS and Android app development.

A huge shoutout to our community
This would not have been possible without feedback from developers in our community (especially the gamers 🙂). Special thank you to developers who have shared their own solutions with fellow community members and continue to be heavily engaged in the Camera Kit platform. We hope that this allows many of you that have shared requests for Unity support to move forward with Camera Kit. We’re excited to see what you build.

Get started with Camera Kit and Unity
To dive in, you can find the Unity sample project in our open-source repository: https://github.com/Snapchat/camera-kit-unity-sample

Support, Feedback, and Contributions
We are eager to hear your feedback in this Camera Kit Community Forum! Please note support/help requests on github will be closed, so they are best handled through the Camera Kit Community Forum as well. Your code contributions are welcome, as we know we can always improve. We aim to review these at a regular cadence.

Known Limitations

  • Unity as a Library is not the typical way people use Unity. Although we provide extensions that manage the native code for you, you will still need to do a one-time setup for two native apps (iOS/Android).
  • Our template may restrict usage of other 3rd-party plugins.

We are looking forward to hearing feedback from our community on this solution and how it can be improved!

Happy Building!
The Camera Kit Team

Tagged:

Comments

  • Exciting news! Camera Kit now supports Unity. The Unity sample project, available on GitHub, lets you integrate Camera Kit into iOS and Android apps using managed C# code. This is in response to your feedback, making AR content creation more accessible. Share your thoughts in the Camera Kit Community Forum.

  • Chandu Naidu
    Chandu Naidu Posts: 3
    edited February 11 #3

    I've developed a game-changing feature that enhances safety and privacy for sharing images on snapchat how to submit it?

  • I would like to ask why the camera I enabled in the Unity demo cannot see the real scene.

  • Pico Alta
    Pico Alta Posts: 22 🔥

    This update came at the perfect time! I'm currently developing an app with it. How can we contribute to this? Do you accept pull requests?