juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.16k stars 525 forks source link

Make custom unity package #713

Open siisee11 opened 2 years ago

siisee11 commented 2 years ago

Is your feature request related to a problem? Please describe. How about making unity packages instead of distributing via .unitypackage? I don't want to include the FlutterUnityIntegration asset in my version control. I want to include this asset as a dependency in my custom package.

Describe the solution you'd like Install FlutterUnityIntegration from UPM.

Describe alternatives you've considered

Additional context https://docs.unity3d.com/Manual/CustomPackages.html

hu1won commented 1 year ago

Unity has a package manager that allows you to manage and share custom packages within your organization or with the public. You can create a package from your project assets and use the Unity Package Manager (UPM) to install it in other projects.

To create a package from your assets, you can use the Assets > Export Package menu in the Unity editor. This will create a .unitypackage file that you can distribute to other users or publish to the UPM registry.

Alternatively, you can create a custom package using the UPM package format and publish it to the UPM registry. Users can then install your package using the Packages > Add package from git URL menu in the Unity Package Manager window. This allows you to distribute your package as a dependency that can be easily installed and updated in other projects.

If you want to include the FlutterUnityIntegration asset as a dependency in your custom package, you can create a package that depends on the FlutterUnityIntegration package and publish it to the UPM registry. Users can then install your package, which will automatically install the FlutterUnityIntegration package as a dependency. This allows you to share your custom package without including the FlutterUnityIntegration asset in your version control.