realm / realm-dotnet

Realm is a mobile database: a replacement for SQLite & ORMs
https://realm.io
Apache License 2.0
1.24k stars 161 forks source link

Unity Support #141

Closed kristiandupont closed 3 years ago

kristiandupont commented 9 years ago

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.

juggernate commented 8 years ago

:+1: 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?

fealebenpae commented 8 years ago

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.

dsgarage commented 8 years ago

Great!! Unity is .Net2.0 doing. Are you sure you want to support this version?

ptatoChi commented 8 years ago

pleaseeeeeeeeeeeeeeeeeeeeeeeeee unity support

dasako commented 8 years ago

Does it support Unity yet?

AndyDentFree commented 8 years ago

No, sorry, we do not yet have Unity support as of late August 2016.

dasako commented 8 years ago

World is waiting for it...

mgrider commented 8 years ago

I would totally use this.

sandolkakos commented 7 years ago

I'd love to use Realm in my Unity projects too. Awaiting πŸ‘

kristiandupont commented 7 years ago

Unity developers, which platforms are you primarily aiming to target?

favoyang commented 7 years ago

By ordering: iOS, Android and web.

Cheers,

Favo

Co-Founder of LittleBigFun - The Boy and Girl Indie Game Studio.

On 10月 26 2016, at 7:05 ζ™šδΈŠ, Kristian Dupont notifications@github.com wrote:

Unity developers, which platforms are you primarily aiming to target?

β€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

dasako commented 7 years ago

iOS, Android and Nintendo Switch.

negue commented 7 years ago

Android, UWP and iOS

Raydekk commented 7 years ago

Android and iOS

johnpudd commented 7 years ago

iOS and Android here.

On Thursday, 27 October 2016, negue notifications@github.com wrote:

Android, UWP and iOS

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/realm/realm-dotnet/issues/141#issuecomment-256563169, or mute the thread https://github.com/notifications/unsubscribe-auth/AFuy0OuAJbDpDzPMyPEGyrLP9mIJ-Y4pks5q4E0DgaJpZM4F5fgv .

Kind regards

John Puddifoot Founder, Eastpoint Software Limited E: john@eastpoint.co.uk T: +44 (0) 1223 690 164 M: +44 (0) 7494 489 954 www.eastpoint.co.uk https://www.eastpoint.co.uk/ https://www.eastpoint.co.uk/

noughts commented 7 years ago

Android and iOS

mgrider commented 7 years ago

iOS, Android, Windows/PC, various consoles. (But you don't want to support consoles.)

sandolkakos commented 7 years ago

Android, iOS, Web and Standalone (Windows, MacOSX, Linux).

phillipeaam commented 7 years ago

Android, iOS, Web and Standalone (Windows, MacOSX, Linux). Β²Β³!

JeffersonFerreira commented 7 years ago

UWP and Android :)

tallesborges commented 7 years ago

Android and iOS

ryangullotti commented 7 years ago

iOS, Android, Windows/PC

8beat0405 commented 7 years ago

We're really waiting for this. Please update your working progress so we can choose what to use for our next project. Thank you.

sandolkakos commented 7 years ago

@kristiandupont Any news about Unity Support? My team will start a new project in the next months where we would like to use realm :)

kristiandupont commented 7 years ago

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.

sandolkakos commented 7 years ago

Thanks for keeping us informed.

8beat0405 commented 7 years ago

Nice to hear from you, Kris. We hope to hear good news next year. Happy New Year :D

amirhgh commented 7 years ago

Is there any plan for adding Unity support?

nirinchev commented 7 years ago

Yes, there is - we are in the process of migrating our assemblies to .NET standard. Then, Unity will need to add support for that (which they promised they'll do). However, we still need our platform specific core build, so even after unity migrates to .NET standard, we'll only support it on platforms our core runs (iOS, Android, macOS, Linux, Windows desktop, UWP). Of course, other platforms can be added if there's enough interest.

hikarivina commented 7 years ago

Android, iOS, Web and Windows, MacOSX πŸ‘ 1

sandolkakos commented 6 years ago

Hi folks, did somebody managed to use Realm with Unity after the new Scripting Runtime Version ".NET 4.6"?

maziarz commented 6 years ago

Any updates on Unity support?

pvn-anh-pham commented 6 years ago

Hope to see it with Unity. Totally worth it!!

Haegon commented 6 years ago

Unity3D and Unreal support plz...

zzmingo commented 6 years ago

Unity please.

stopiccot commented 6 years ago

+1

JimmyDeemo commented 5 years ago

We would use this for Android (+ Amazon), iOS and Facebook Gameroom projects.

hanniiel commented 5 years ago

Any updates??? (Android, IOS, PC Mac) We really want to update LiteDB to Realm πŸ‘ please make it happen :) Best regards! Keep the great work!

jlubeck commented 5 years ago

Tagging along for news. Targeting iOS and Android

burcsade commented 5 years ago

Crossing fingers here, developing for iOS and Android.

mahdisml commented 5 years ago

i think we can use Realm .net Database in Unity3d 2019.1 version ! :) Because Unity 2019.1 Support .NET standard 2

XDarinor commented 5 years ago

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?

CrandellWS commented 5 years ago

well let me get notified on this I guess

nirinchev commented 5 years ago

@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.

sandolkakos commented 5 years ago

@XDarinor, do you have a prevision to give us about when could we start using Realm on Unity? The biggest part of the Unity Developers are developing for Android, iOS and Windows, so release it and let all of us be happy. Later you guys can release for other platforms. 😝

hanniiel commented 5 years ago

You got my interest :3, I really wanna use Realm (currenly using LiteDB) but also MogoDB mobil version is coming so....

darkwater84 commented 5 years ago

@nirinchev can you give us a page to make a petition?

hanniiel commented 5 years ago

https://www.mongodb.com/realm what about this??

chrisk414 commented 4 years ago

Hi, I just learned about Realm and very excited to try but I found myself disappointing soon after. Realm advertises big on mobile as the best solution, yet it doesn't support Unity. What gives? Unity is probably the most popular mobile development platform and it's still not supported for 4 years? Is this something you will never do anything about it? If so, I would not hold my breath any further.

Last a couple of days, I spent lots of time trying to make it work and all my efforts failed. However, I made some progress. This is the current state.

There are two problems. 1.

  1. Fody will not work on Unity: After pulling lots of hair, I determined that Fody on Unity will not work, therefore I had to create an external DLL and bring it into Unity.

  2. Unity will freeze when the assemblies reload: Bring it into Unity will work for the first run, however, clicking on "Play" the second time will freeze Unity. This is because Unity will try to reload the assemblies but the DLL(I believe it's realm-wrapper.dll) won't reload. I think we need to find a way to reload DLL or make the DLL stay resident so that it's unaffected by the assembly reload.

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.