aosoft / Xamarin.Forms.Unity

Xamarin.Forms for Unity (Platform implementation for Unity Game Engine)
Other
133 stars 13 forks source link

Sample with Xamarin Forms Project? #3

Open dgerding opened 6 years ago

dgerding commented 6 years ago

Hi, Very interested in trying this out. Just wondering if there is a solution sample somewhere that includes the Xamarin Forms project (and supported XF target projects like Android, iOS etc... ) to see better how to wire up what I assume is are custom view renderers to host the Unity runtime?

Thanks! Dave G

aosoft commented 6 years ago

Sorry for the late reply. The XF for Unity also follows the architecture of other platforms. I think that it is better to refer to the source code while comparing with other implementations, because XF for Unity has some unique processing (management of View class instance, UI layout etc.).

dgerding commented 5 years ago

Hi @aosoft, Glad to see the new update to XF 4.0. Before I try again can you tell me if my mental model is correct?

Can I use this package to achieve either of the following:

Have a unity runtime appear embedded as just part of a XamarinForms ContentPage?

or

Can I link to a full-screen Unity runtime from a XamarinForms Content page and then return to Xamarin Forms pages from the Unity runtime?

Thanks for your patience and efforts here!

Dave G

MarcK95 commented 4 years ago

@aosoft I'd really like to know too what @dgerding asked in his last question. Is it possible to do at least one of the described scenarios?

louisoftokyo commented 4 years ago

@aosoft

I would also really like to know what @dgerding and @MarcKammermann are asking.

aosoft commented 4 years ago

XF For Unity runs on the Unity runtime. At runtime, XF for Unity maps Xamarin.Forms components to Unity's uGUI.

Other .NET runtimes are not considered. It does not, for example, allow you to embed an Unity app as part of an Xamarin.Android app created in Xamarin.Forms. The reverse is also not possible.

louisoftokyo commented 4 years ago

Understood, thank you.