public static void RemoveIllegalComponents(GameObject[] targets, WhiteListConfiguration config, bool retry = true)
 {
     ConfigureWhiteList(config);
     foreach (GameObject target in targets)
     {
         ValidationUtils.RemoveIllegalComponents(target, ValidationUtils.WhitelistedTypes("world" + config.ToString(), ComponentTypeWhiteList), retry, true);
     }
 }
Example #2
0
        public static void RemoveIllegalComponents(IEnumerable <GameObject> targets, WhiteListConfiguration config, bool retry = true)
        {
            ConfigureWhiteList(config);
            HashSet <Type> whitelist = ValidationUtils.WhitelistedTypes("world" + config, ComponentTypeWhiteList);

            foreach (GameObject target in targets)
            {
                ValidationUtils.RemoveIllegalComponents(target, whitelist, retry, true);
                AddScanned(target);
            }
        }
        public static void ScanGameobject(GameObject target)
        {
            if (scannedObjects.Contains(target.GetInstanceID()))
            {
                return;
            }

            ValidationUtils.RemoveIllegalComponents(target, ValidationUtils.WhitelistedTypes("world", ComponentTypeWhiteList));

            scannedObjects.Add(target.GetInstanceID());
        }
Example #4
0
        public static void ScanGameObject(GameObject target, WhiteListConfiguration config)
        {
            if (WasScanned(target))
            {
                return;
            }

            ConfigureWhiteList(config);
            HashSet <Type> whitelist = ValidationUtils.WhitelistedTypes("world", ComponentTypeWhiteList);

            ValidationUtils.RemoveIllegalComponents(target, whitelist);

            AddScanned(target);
        }
Example #5
0
 public static void RemoveIllegalComponents(GameObject target, bool retry = true)
 {
     ValidationUtils.RemoveIllegalComponents(target, GetWhitelistForSDK(target), retry);
 }
Example #6
0
 public static void RemoveIllegalComponents(GameObject target, bool retry = true)
 {
     ValidationUtils.RemoveIllegalComponents(target, ValidationUtils.WhitelistedTypes("avatar", ComponentTypeWhiteList), retry);
 }