Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Removing Probuilder MeshData from scene file

Discussion in 'World Building' started by areepen, Oct 10, 2018.

  1. areepen

    areepen

    Joined:
    Aug 28, 2017
    Posts:
    7
    Hey,
    I have used ProBuilder in a project and it converted all Meshes to ProBuilder Meshes.
    As we know these are stored in the scene file by default. Unfortunately this made my scenes unwieldy large.

    Can I somehow remove this data from the scene file? Striping the Probuilder Meshes does not touch the scene file and even deleting the GameObjects doesn't remove the MeshData. Which leaves me with an empty hierarchy, but still a huge scene file.

    Is there anyway to clean this up after the fact, without redoing the scene?
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    548
    Deleting the GameObjects doesn't remove the mesh data? Are you certain you've saved the scene since removing them? I just checked in a clean project and it seemed to work fine.

    Regarding removing the ProBuilder data, there are two parts to it. One is removing the pb_Object component data, which Strip ProBuilder Scripts does. The other part is removing the UnityEngine.Mesh data, which doesn't have a built-in menu item.

    However, you can use the "Export to Asset" action to remove the ProBuilder data and move the mesh instance to an Asset, which sounds like what you want.
     
  3. master_rigel

    master_rigel

    Joined:
    Mar 24, 2014
    Posts:
    69
    This is exactly what I was trying to do. I would make one more comment, that if you can merge your objects together, and weld your vertices, you'll get a much nicer, and smaller export.