# General
- This is the exporter plugin used by content creation to export Unity Scenes into .abscene archives
- It adds the menu item to the objects that the user can click to export

To create a .unitypackage for hand-off to modeling:
1. Open the AssetPipelineUnityPlugin project in Unity using `build -p AssetPipelineUnityPlugin -ou`
2. Update `CHANGELOG.md`
3. Right click the `Mtm.AbSceneExport` folder and click `Export Package`
4. In the prompt for export,
    - Unselect `Plugins` folder so that it is not exported
    - Unselect `ProjenyPackage.yaml` so that it is not exported
    - Select the Newtonsoft.Json plugin library so that it is included
    - Ensure the ProjenyAsmdef is included in the export
5. Replace the existing exported package in `Src\UnityPackages\ModestTree\Mtm.AbSceneExport\.Exported` with the new, correctly named package

NOTE: Files from this package should not modified except for programmers since that could break compatibility.


# Project Configuration - Oculus Quest
If exporting for the Oculus Quest platform, the following configuration must be applied to the project:
- Unity's XR Management and OpenXR packages must be installed
- OpenXR and Meta Quest Support must be enabled for the Android platform (under Project Settings > XR Plug-in Management)
- The target render mode for OpenXR must be set to Single Pass Instanced \ Multi-view (under Project Settings > XR Plug-in Management > OpenXR)
- The target graphics API must be set to "Vulkan" for Android (under Project Settings > Graphics) (this will be done automatically when Oculus is selected as the export option)


# ParticleStaticBezierFlow
Included also is a packaging of the third party ParticleStaticBezierFlow (`Src\UnityPackages\ThirdParty\ParticlesStaticBezierFlow`) for the modelling team to use internally.


# Troubleshooting
Unity automatically installs several packages that are not required and may conflict with the asset bundle exporter. Open Window > Package Manager and uninstall the following packages:
- Analytics
- In App Purchasing
- Jetbrains Rider Editor
- Multiplayer Center
- Version Control
