/// <summary> /// ValueType copy from another SessionConfig object into this one. /// </summary> /// <param name="other">The SessionConfig to copy from.</param> public void CopyFrom(ARCoreSessionConfig other) { MatchCameraFramerate = other.MatchCameraFramerate; PlaneFindingMode = other.PlaneFindingMode; EnableLightEstimation = other.EnableLightEstimation; EnableCloudAnchor = other.EnableCloudAnchor; AugmentedImageDatabase = other.AugmentedImageDatabase; CameraFocusMode = other.CameraFocusMode; AugmentedFaceMode = other.AugmentedFaceMode; }
/// <summary> /// ValueType copy from another SessionConfig object into this one. /// </summary> /// <param name="other">The SessionConfig to copy from.</param> public void CopyFrom(ARCoreSessionConfig other) { MatchCameraFramerate = other.MatchCameraFramerate; PlaneFindingMode = other.PlaneFindingMode; LightEstimationMode = other.LightEstimationMode; CloudAnchorMode = other.CloudAnchorMode; AugmentedImageDatabase = other.AugmentedImageDatabase; CameraFocusMode = other.CameraFocusMode; AugmentedFaceMode = other.AugmentedFaceMode; DepthMode = other.DepthMode; }
public static ApiAugmentedFaceMode ToApiAugmentedFaceMode(this AugmentedFaceMode mode) { switch (mode) { case AugmentedFaceMode.Disabled: return(ApiAugmentedFaceMode.Disabled); case AugmentedFaceMode.Mesh: return(ApiAugmentedFaceMode.Mesh3D); default: Debug.LogErrorFormat("Unexpected AugmentedFaceMode {0}", mode); return(ApiAugmentedFaceMode.Disabled); } }