public void ApplyCustomPlatformUI(FormUIType platformUI)
 {
     _targetPlatformUI = platformUI;
     TargetContainer   = _forms.Find(form => form.UIType == _targetPlatformUI);
     ApplyCanvasReferenceResolution();
     _autoDetectPlatformUI = false;
 }
        public void DetectTargetForm()
        {
#if !UNITY_EDITOR && !UNITY_STANDALONE
            _autoDetectPlatformUI = true;
#endif
            var targetType = _autoDetectPlatformUI ? GetTargetUIType() : _targetPlatformUI;
            TargetContainer = _forms.Find(form => form.UIType == targetType);
            ApplyCanvasReferenceResolution();
            if (TargetContainer == null)
            {
                DevLogger.Error("Cannot find form container for " + targetType,
                                MarketLogType.UI);
            }

            _targetPlatformUI = targetType;
        }