CSV2UnityMesh is a Unity package that allows you to convert CSV data into Unity meshes and FBX files. You can easily integrate it into your Unity project using the Unity Package Manager (UPM).
Unity Version 2022.3+ (FBX Exporter 5.0+)
To install CSV2UnityMesh, follow these steps:
- Open your Unity project.
- Go to Window > Package Manager.
- Click on the "+" button and select "Add package from disk/url..."
- Drag and drop your CSV file into the Unity Editor.
- Navigate to Tools > CSV2UnityMesh to open the CSV import window.
- Drag your CSV asset into the CSV2UnityMesh window.
- Verify the accuracy of each attribute's data source, such as position, normal, and tangent.
- Choose the output directory and file name for the generated files.
- Click on "Export" to generate mesh and FBX files at the specified path.
- The exported FBX file may have incomplete texcoord data because FBX supports only float2 for texcoords. However, mesh files contain complete data, including float4 texcoords, which Unity can handle.