Method UnityMeshToPixyz
UnityMeshToPixyz(PiXYZAPI, Renderer, Mesh, Material[], uint)
Create a mesh definition from input without creating into pixyz. (pixyzMeshes and pixyzMatrices are auto filled)
Declaration
public MeshDefinition UnityMeshToPixyz(PiXYZAPI api, Renderer renderer, Mesh mesh, Material[] materials, uint index = 0)
Parameters
Type | Name | Description |
---|---|---|
PiXYZAPI | api | API instance that will be used when making call to pixyz |
Renderer | renderer | The renderer that will be converted to pixyz |
Mesh | mesh | the mesh that will be converted to pixyz |
Material[] | materials | Materials that will be converted to pixyz |
uint | index | an externalID used to identify the mesh generated |
Returns
Type | Description |
---|---|
MeshDefinition | MeshDefinition ready to be sent to pixyz |