GetPrimitiveCount() private méthode

private GetPrimitiveCount ( Mesh mesh ) : int
mesh UnityEngine.Mesh
Résultat int
        public override string GetInfoString()
        {
            string str2;
            Mesh   target = this.target as Mesh;

            object[] objArray1    = new object[] { target.vertexCount, " verts, ", InternalMeshUtil.GetPrimitiveCount(target), " tris" };
            string   str          = string.Concat(objArray1);
            int      subMeshCount = target.subMeshCount;

            if (subMeshCount > 1)
            {
                str2 = str;
                object[] objArray2 = new object[] { str2, ", ", subMeshCount, " submeshes" };
                str = string.Concat(objArray2);
            }
            int blendShapeCount = target.blendShapeCount;

            if (blendShapeCount > 1)
            {
                str2 = str;
                object[] objArray3 = new object[] { str2, ", ", blendShapeCount, " blendShapes" };
                str = string.Concat(objArray3);
            }
            return(str + "\n" + InternalMeshUtil.GetVertexFormat(target));
        }
Exemple #2
0
        public override string GetInfoString()
        {
            Mesh   mesh      = target as Mesh;
            string info      = mesh.vertexCount + " verts, " + InternalMeshUtil.GetPrimitiveCount(mesh) + " tris";
            int    submeshes = mesh.subMeshCount;

            if (submeshes > 1)
            {
                info += ", " + submeshes + " submeshes";
            }

            int blendShapeCount = mesh.blendShapeCount;

            if (blendShapeCount > 1)
            {
                info += ", " + blendShapeCount + " blendShapes";
            }

            info += "\n" + InternalMeshUtil.GetVertexFormat(mesh);
            return(info);
        }
        public override string GetInfoString()
        {
            Mesh   mesh = this.target as Mesh;
            string text = string.Concat(new object[]
            {
                mesh.vertexCount,
                " verts, ",
                InternalMeshUtil.GetPrimitiveCount(mesh),
                " tris"
            });
            int subMeshCount = mesh.subMeshCount;

            if (subMeshCount > 1)
            {
                string text2 = text;
                text = string.Concat(new object[]
                {
                    text2,
                    ", ",
                    subMeshCount,
                    " submeshes"
                });
            }
            int blendShapeCount = mesh.blendShapeCount;

            if (blendShapeCount > 1)
            {
                string text2 = text;
                text = string.Concat(new object[]
                {
                    text2,
                    ", ",
                    blendShapeCount,
                    " blendShapes"
                });
            }
            return(text + "\n" + InternalMeshUtil.GetVertexFormat(mesh));
        }
        public override string GetInfoString()
        {
            Mesh   target       = this.target as Mesh;
            string str          = target.vertexCount.ToString() + " verts, " + (object)InternalMeshUtil.GetPrimitiveCount(target) + " tris";
            int    subMeshCount = target.subMeshCount;

            if (subMeshCount > 1)
            {
                str = str + ", " + (object)subMeshCount + " submeshes";
            }
            int blendShapeCount = target.blendShapeCount;

            if (blendShapeCount > 1)
            {
                str = str + ", " + (object)blendShapeCount + " blendShapes";
            }
            return(str + "\n" + InternalMeshUtil.GetVertexFormat(target));
        }