Change the extension from nupkg to zip. And unpack.
Copy dlls from lib/netstandard2.0 to Unity Project (ex. Assets/Xamarin.Forms.Unity/Plugins) .
Import "UniRx".
Create App class that inherits Xamarin.Forms.Application.
Create FormsApplicationActivity class that inherits Xamarin.Forms.Platform.Unity.UnityFormsApplicationActivity. T is Application class that implemented earlier.
Create Prefabs of UI Comoponent. (Canvas, Button, Text, InputField etc.)
Create "UI - Canvas" on the Hierarchy of Unity scene. This Canvas is UI Root of Xamarin.Forms.
Create "Xamarin.Forms Application Activity(User defined)" on the Hierarchy of Unity scene. This Activity must be singleton.
Set Prefabs of UI Component and Root Canvas to Activity.
Known Issues
XAML Loader does not work with IL2CPP Build. (maybe due to Unity (2017.1.1f1))
NavigationPage is not implemented in the current version.
Custom Renderers is not supported in the current version.
(Please apply the design with the component of Prefab.)
请发表评论