Experimental: this API is experimental and might be changed or removed in the future.

MeshGenerationResult.MeshCollider

切换到手册
public MeshCollider MeshCollider ;

描述

如果生成成功,则表明物理数据已写入此 MeshCollider

检查 MeshGenerationResult.Status 以确定生成是否成功。如果为 XRMeshSubsystem.GenerateMeshAsync 提供了 null MeshCollider,则 MeshCollider 可能为 null。

另请参阅:XRMeshSubsystem.GenerateMeshAsync