示例#1
0
        public void FromUnityMesh(UnityEngine.Mesh mesh, Transform transform)
        {
            if (!mesh.isReadable)
            {
                UnityEngine.Debug.LogWarning("Unable to edit mesh, mesh is not readable!");
            }

            Transform    = transform;
            OriginalMesh = mesh;
            Populate(mesh);

            undoSystem = new UndoSystem();
        }
示例#2
0
文件: PPMesh.cs 项目: jaroosh/Habitat
        public void FromUnityMesh(UnityEngine.Mesh mesh, Transform transform)
        {
            if (!mesh.isReadable)
            {
                UnityEngine.Debug.LogWarning("Unable to edit mesh, mesh is not readable!");
            }

            Transform = transform;
            OriginalMesh = mesh;
            Populate(mesh);

            undoSystem = new UndoSystem();
        }