/// <summary>
 /// ValueType copy from another ARCoreExtensionsConfig object into this one.
 /// </summary>
 /// <param name="otherConfig">The ARCoreExtensionsConfig to copy from.</param>
 public void CopyFrom(ARCoreExtensionsConfig otherConfig)
 {
     CloudAnchorMode   = otherConfig.CloudAnchorMode;
     SegmentationMode  = otherConfig.SegmentationMode;
     DepthModeOverride = otherConfig.DepthModeOverride;
     UseHorizontalAndVerticalLowFeatureGrowth =
         otherConfig.UseHorizontalAndVerticalLowFeatureGrowth;
 }
Exemple #2
0
        public static ApiDepthMode ToApiDepthMode(this DepthModeOverride depthMode)
        {
            switch (depthMode)
            {
            case DepthModeOverride.RawDepthOnly:
                return(ApiDepthMode.RawDepthOnly);

            default:
                return(ApiDepthMode.Disabled);
            }
        }