private void ScanForOrientations() { foreach (string modelPath in ValidatorData.GetModelPaths()) { GameObject gameObject = ValidatorData.LoadAssetAtPath <GameObject>(modelPath); if (ModelScanner.IsUpright(gameObject)) { continue; } this.orientationCheck.AddPath(AssetDatabase.GetAssetPath(gameObject)); } }
private void ScanForOrientations() { List <string> modelPaths = ValidatorData.GetModelPaths(); foreach (string path in modelPaths) { GameObject gameObject = ValidatorData.LoadAssetAtPath <GameObject>(path); if (!ModelScanner.IsUpright(gameObject)) { this.orientationCheck.AddPath(AssetDatabase.GetAssetPath(gameObject)); } } }