HasRenderableParts() публичный статический Метод

public static HasRenderableParts ( GameObject go ) : bool
go UnityEngine.GameObject
Результат bool
Пример #1
0
 public static bool IsValidPreviewGameObject(GameObject target, ModelImporterAnimationType requiredClipType)
 {
     if (target != null && !target.activeSelf)
     {
         Debug.LogWarning("Can't preview inactive object, using fallback object");
     }
     return(target != null && target.activeSelf && GameObjectInspector.HasRenderableParts(target) && (requiredClipType == ModelImporterAnimationType.None || AvatarPreview.GetAnimationType(target) == requiredClipType));
 }
Пример #2
0
        private bool HasStaticPreview()
        {
            bool result;

            if (base.targets.Length > 1)
            {
                result = true;
            }
            else if (base.target == null)
            {
                result = false;
            }
            else
            {
                GameObject gameObject = base.target as GameObject;
                Camera     exists     = gameObject.GetComponent(typeof(Camera)) as Camera;
                result = (exists || GameObjectInspector.HasRenderableParts(gameObject));
            }
            return(result);
        }