Autogenerated (API Documentation) stripped of AR Foundation
Describe the issue
In the API Documentation, much or all of the AR Foundation related documentation is missing from the documentation, even though markup is present in the code.
Feature area
All AR Foundation related API surface is missing.
Existing doc link
A good example is in ArEnumConversion.cs. Look at the detailed comments, e.g. for static function ToUnityTrackedPose. Sounce code here: https://github.com/microsoft/MixedRealityToolkit-Unity/blob/releases/2.4.0/Assets/MRTK/Providers/UnityAR/Utilities/ArEnumConversion.cs
Then compare that with the generated documentation here: https://microsoft.github.io/MixedRealityToolkit-Unity/version/releases/2.4.0/api/Microsoft.MixedReality.Toolkit.Experimental.UnityAR.ArEnumConversion.html
Additional context
It appears that during the documentation generation (docfx), code guarded by the define ARFOUNDATION_PRESENT is stripped out. That would include most if not all of MRTK's AR Foundation related API surface.
This may be an issue with other define guarded codes using the new Unity Version Defines.
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
This is still the case. As MRTK shifts to predominately XR SDK, this will become even more of an issue.
@MaxWang-MS, any idea what's causing the AR Foundation comments to get removed from the API refs that are generated? https://review.docs.microsoft.com/en-us/dotnet/api/microsoft.mixedreality.toolkit.experimental.unityar.arenumconversion?view=mixed-reality-unity-dotnet-2.5.2&branch=main
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!