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); } }
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()); }
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); }
public static void RemoveIllegalComponents(GameObject target, bool retry = true) { ValidationUtils.RemoveIllegalComponents(target, GetWhitelistForSDK(target), retry); }
public static void RemoveIllegalComponents(GameObject target, bool retry = true) { ValidationUtils.RemoveIllegalComponents(target, ValidationUtils.WhitelistedTypes("avatar", ComponentTypeWhiteList), retry); }