Ejemplo n.º 1
0
 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));
     }
 }
Ejemplo n.º 2
0
        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));
                }
            }
        }