Deformed Mesh=> Processing
Set
public static void Set_Processing(Processing processing)
Example:
//Create a spline plus game object at Vector3.zero var sPData = SplinePlusAPI.CreateSplinePlus(new Vector3(0,0,0)); //Add a deformed mesh component to the spline plus game object var deformedMesh = sPData.Add_DeformMesh(); //Do the procedural meshes calculations on the GPU deformedMesh.Set_Processing(Processing.GPU); //Update procedural mesh generated on all the branches deformedMesh.Update_Branches(true, true);
Get
public static Processing Get_Processing(this DeformedMesh deformedMesh)
Example:
//Create a spline plus game object at Vector3.zero var sPData = SplinePlusAPI.CreateSplinePlus(new Vector3(0,0,0)); //Add a deformed mesh component to the spline plus game object var deformedMesh = sPData.Add_DeformMesh(); //Get the processing hardware type used for deformedMesh var processing= deformedMesh.Get_Processing(); Debug.Log(processing); //Update procedural mesh generated on all the branches deformedMesh.Update_Branches(true, true);