Search Unity

CollisionMeshes are not baked when prebake collision meshes flag is enabled

Discussion in 'Asset Bundles' started by Marks001, Jul 20, 2020.

  1. Marks001

    Marks001

    Joined:
    Dec 11, 2014
    Posts:
    27
    I use BuildPipeline.BuildAssetBundles to generate assetBundles, and got a error in runtime:
    "CollisionMeshData couldn't be created because the mesh has been marked as non-accessible.",
    I have enabled Prebake collision meshes flag.
    The problem can be solved by setting read/write of mesh,but this has an impact on performance,i dont want do this.
    Has anyone encountered this problem? How was it resolved?
    Thanks

    UntiyVersion:2018.4.13f1
    Os:windows