-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity Support #141
Comments
During my last attempt, making unity work was successful once we switched to .net 3.5, but there were two issues: on windows, I had to run the build in the debugger for Unity to not crash. On OSX, trying to build for iOS, I couldn't make it move the project into xcode (xcode would crash). These issues should not be show stoppers but they are things to look into. |
👍 Exciting! I love using Realm in my Swift projects and I would be very interested in using it for my Unity projects. Do you foresee many hurdles with Unity's IL2CPP? |
I'm not sure anyone on the team here has enough experience with Unity to be able to say for certain whether we'd have any difficulties because of the IL to C++ translation, but I for one am excited to find out. |
Great!! |
pleaseeeeeeeeeeeeeeeeeeeeeeeeee unity support |
Does it support Unity yet? |
No, sorry, we do not yet have Unity support as of late August 2016. |
World is waiting for it... |
I would totally use this. |
I'd love to use Realm in my Unity projects too. Awaiting 👍 |
Unity developers, which platforms are you primarily aiming to target? |
By ordering: iOS, Android and web. Cheers, Favo Co-Founder of  |
Android, iOS, Web and Standalone (Windows, MacOSX, Linux). |
Android, iOS, Web and Standalone (Windows, MacOSX, Linux). ²³! |
UWP and Android :) |
Android and iOS |
iOS, Android, Windows/PC |
We're really waiting for this. |
@kristiandupont |
Sorry, there are no news to report yet. We have other issues that are currently higher priority. We will keep this thread updated when we start looking into Unity. |
Thanks for keeping us informed. |
Crossing fingers here, developing for iOS and Android. |
i think we can use Realm .net Database in Unity3d 2019.1 version ! :) |
Unity 2019 supports .NET Standard 2. But Realm still need to wrap the native c++ core to run? This means that can be of course used on Android e iOS, but I think it will not work on Switch and other gaming platform. Even if Playstation 4 runs on Linux, the buildchain can be different. The only plausible gaming platform that can be supported it's XBOX One, as it uses UWP as a base to work. Anyone have experience using Realm on a gaming platform different from desktop PC and mobile devices? |
well let me get notified on this I guess |
@XDarinor that is correct - when we decide to ship Unity support, initially we'll roll it out for platforms we currently support (iOS, Android, Windows, macOS, and Linux). Obviously we can extend support to other platforms but that will depend a lot on customer and community interest. |
@XDarinor, do you have a prevision to give us about when could we start using Realm on Unity? |
You got my interest :3, I really wanna use Realm (currenly using LiteDB) but also MogoDB mobil version is coming so.... |
@nirinchev can you give us a page to make a petition? |
https://www.mongodb.com/realm what about this?? |
Hi, Last a couple of days, I spent lots of time trying to make it work and all my efforts failed. There are two problems. 1.
I really hope Realm support Unity soon, if not at least resolve an issue about the freeze. This will at least get us going while waiting for the better support. Thanks. |
What they promised they'll do is fulfilled. What's the status on this? Is there a person who is actively looking into this? I'll have to figure out if I'll adopt Realm. The current problem is that Realm.dll use P/Invoke calls to realm-wrapper.dll and it makes Unity to freeze when trying to unload realm-wrapper.dll. A bright side is that it runs fine for the first run, and reading (not writing) from realm doesn't seem to call realm-wrapper.dll and it doesn't cause the freeze. Until Realm supports Unity officially, I have to figure out a workaround. I think there are two workarounds.
I guess I prefer workaround #2, but I would like to know the answer to #1. Please help make this possible. I'm sure there are tons of Unity users dying to use Realm. Thanks. |
We don't have anyone currently working on unity support, but is something that we're evaluating. You can keep an eye on the roadmap for updates. |
Well, I expected some answers to my question above but the answer is flat. hmm.. Anyway, let me ask you again. Right now, I can only use Realm as a local db and I would like to know if there is a create a daemon that syncs between the local and online Realm. In theory it's possible but I find that accessing local Realm while it's being used by other app creates freeze. I can't even edit using Realm Studio when an application uses it. I believe it doesn't mean to be designed like that. If it is, I'm very disappointed with the current limitation and it's almost unusable. Oh well.. Now that you have MongoDB backings, perhaps you should hire Unity specialists now instead of waiting for another year to get started. I don't think you can say you are big on mobile without Unity support these days. |
If the issues with freezing you describe occur in a Unity project, then there's nothing we can do about it until we have official Unity support. Regarding official Unity support, as I said, no one is working on it at the moment. We do have plans to expand the platforms we support, but we're not in a position to commit to a public timeframe. If you have a critical deadline by which you need to be able to run Realm in a Unity app, please reach out to your account executive or the sales team to describe your project requirements and deadlines. They may be able to give you a more specific roadmap. |
Ok, I get that you don't have a specific plan to support Unity now. And I'm really hoping that you would sooner than later. I asked the question a couple of times already and let me ask you this question once again. I filed a support ticket but I was directed to ask on the forum. And it keeps going into the drain. While an application is accessing local Realm, another application cannot write to the same realm. What I'm trying to do is to create a daemon that syncs between a local Realm and online Realm while the local realm is being accessed by an application. I'm sure you didn't design Realm so that only one application can access it. If so, it has a serious design flaw as you cannot edit it from Realm Studio while some application is using it. Please help answer the question above and I'll appreciate it. And let me know if the thread-safe version will fix it if it's the current limitation. Thanks. |
Synchronized realm files can only be opened by one process at a time, that's why you can't open a synchronized realm with another application or with Realm Studio. That's only possible for realms opened using a |
Thanks, it's good to know that local Realm(ReamConfiguration) is "process" safe. |
Hi!Did anyone get to use this database? |
Good news everyone! We have released Beta build support for Unity for our .NET SDK - take a look at an example blogpost here - https://developer.mongodb.com/how-to/getting-started-realm-sdk-unity/ We still have a bunch of things to do over the next quarter while we get our Unity SDK to GA but feel free to take it for a spin and let us know what you think! Additionally, if you are building a game and have local storage requirements we'd love to talk to you; our roadmap is still getting defined and we want to serve the gaming community with the best local database out there. If you are interested in speaking with us please drop me a line at [email protected] for a quick chat |
That is a very nice announcement. I was waiting for it for almost 5 years, and I'm gonna definitely give it a check over the next weekend. |
For those willing to take it for a spin, be sure to get the package from the latest beta release as that addresses a whole lot of rough edges. |
I'm incredibly excited to announce that the Unity SDK is now GA. We'll have a bunch of tutorials and sample apps in the pipeline, but for now, take a look at the docs for a quick getting started guide and browse through the examples at the end of the page if you're looking for inspiration or something more hands-on. And as always, if you are facing difficulties or have suggestions how to improve the SDK, do let us know - we can't wait to see all the amazing games you'll build with Realm and Unity! |
To add on to what @nirinchev said - we'd love to hear about your game and what kind of requirements you have around data persistence. Realm is just getting started in the game development space and our roadmap is adapting to handle these requests. Drop us an email at [email protected] and we can set up a time to talk about your game and answer any questions you might have - looking forward to speaking with you! |
Hey All - our Unity tutorial is live - https://docs.mongodb.com/realm/tutorial/unity/ We have both sync and non-sync versions of the walkthrough - let us know if you have any feedback and happy coding! |
No description provided.
The text was updated successfully, but these errors were encountered: