/// <summary> /// ValueType check if two SessionConfig objects are equal. /// </summary> /// <param name="other">The other SessionConfig.</param> /// <returns>True if the two SessionConfig objects are value-type equal, otherwise /// false.</returns> public override bool Equals(object other) { ARCoreSessionConfig otherConfig = other as ARCoreSessionConfig; if (other == null) { return(false); } if (MatchCameraFramerate != otherConfig.MatchCameraFramerate || PlaneFindingMode != otherConfig.PlaneFindingMode || EnableLightEstimation != otherConfig.EnableLightEstimation || EnableCloudAnchor != otherConfig.EnableCloudAnchor || AugmentedImageDatabase != otherConfig.AugmentedImageDatabase || CameraFocusMode != otherConfig.CameraFocusMode || AugmentedFaceMode != otherConfig.AugmentedFaceMode) { return(false); } return(true); }
/// <summary> /// ValueType check if two SessionConfig objects are equal. /// </summary> /// <param name="other">The other SessionConfig.</param> /// <returns>True if the two SessionConfig objects are value-type equal, otherwise /// false.</returns> public override bool Equals(object other) { ARCoreSessionConfig otherConfig = other as ARCoreSessionConfig; if (other == null) { return(false); } if (MatchCameraFramerate != otherConfig.MatchCameraFramerate || PlaneFindingMode != otherConfig.PlaneFindingMode || LightEstimationMode != otherConfig.LightEstimationMode || CloudAnchorMode != otherConfig.CloudAnchorMode || AugmentedImageDatabase != otherConfig.AugmentedImageDatabase || CameraFocusMode != otherConfig.CameraFocusMode || DepthMode != otherConfig.DepthMode || InstantPlacementMode != otherConfig.InstantPlacementMode || AugmentedFaceMode != otherConfig.AugmentedFaceMode) { return(false); } return(true); }