Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Enter the 2020.2 Beta Sweepstakes for a chance to win an Oculus Quest 2.
    Dismiss Notice

ConvertToEntity Gameobject with MeshCollider

Discussion in 'DOTS Physics' started by unity_VxaHeossL5cOWw, Sep 10, 2020.

  1. unity_VxaHeossL5cOWw

    unity_VxaHeossL5cOWw

    Joined:
    Aug 6, 2019
    Posts:
    6
    if fbx not set export bool - read/write enabled im get error
    Code (CSharp):
    1. InvalidOperationException: Mesh 'Coin (UnityEngine.Mesh)' assigned to Unity.Physics.MeshCollider on Coin is not readable. Ensure that you have enabled Read/Write on its import settings.
    2. Unity.Physics.Authoring.LegacyMeshColliderConversionSystem.GenerateComputationData (UnityEngine.MeshCollider shape, Unity.Physics.Authoring.ColliderInstance colliderInstance, Unity.Collections.NativeList`1[T]
    is it possible to fix this without setting this flag?
     
  2. brunocoimbra

    brunocoimbra

    Joined:
    Sep 2, 2015
    Posts:
    461
    You can set this flag on Unity FBX importer, don't need to set it when exporting the FBX
     
    unity_VxaHeossL5cOWw likes this.
  3. unity_VxaHeossL5cOWw

    unity_VxaHeossL5cOWw

    Joined:
    Aug 6, 2019
    Posts:
    6
    I figured out how to get around this so as not to waste extra memory.
    You need to set this flag and after loading manually and after processing the mesh data, you can call
    UploadMeshData(true) to unload mesh data.
     
unityunity