Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ScriptedImporter question

Discussion in 'Asset Importing & Exporting' started by MikeUpchat, Oct 3, 2021.

  1. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    Hi All
    I have a scriptedimporter that during the import of fbx files removes a lot of unwanted objects and meshes, the fbx files can have 100,000's of objects in that arn't needed in Unity. So the custom importer removes all the data and works fine and when I add the object to the scene it is just the objects I need, my question is when i build the project is the entire orginal FBX file included in the build with all the unneeded data or does just the striped down data in the final prefab get included?
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity only induces what is referenced. (except for the resources folder and streaming assets)
    If you only reference some of a imported models meshes unity will unity include the referenced once.