Prefab Mesh=> Scale

Set Non Uniform Scale

 public static void Set_NonUniform_Scale( Vector3 offset)

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();

//Create a new prefab Mesh for the branch with key 3  
var prefabMesh= deformedMesh.Create_PrefabMesh(3,prefabMeshGO);

// Set prefabMesh non uniform scale
prefabMesh.Set_NonUniform_Scale(new Vector3(10,0,0));

//Update procedural mesh generated on all the branches
deformedMesh.Update_Branches(true, true);

Get Non Uniform Scale

      public static Vector3 Get_NodeUniform_Scale()

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();

//Create a new prefab Mesh for the branch with key 3  
var prefabMesh= deformedMesh.Create_PrefabMesh(3,prefabMeshGO);

// Get prefabMesh non uniform scale
var scale =prefabMesh.Get_NodeUniform_Scale();
Debug.Log(scale);

//Update procedural mesh generated on all the branches
deformedMesh.Update_Branches(true, true);

Set Uniform Scale

public static void Set_Uniform_Scale(float uniformScale)

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();

//Create a new prefab Mesh for the branch with key 3  
var prefabMesh= deformedMesh.Create_PrefabMesh(3,prefabMeshGO);

// Set prefabMesh uniform scale
prefabMesh.Set_Uniform_Scale(0.5f);

//Update procedural mesh generated on all the branches
deformedMesh.Update_Branches(true, true);

Get Non Uniform Scale

    public static float Get_Uniform_Scale()

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();

//Create a new prefab Mesh for the branch with key 3  
var prefabMesh= deformedMesh.Create_PrefabMesh(3,prefabMeshGO);

// Get prefabMesh uniform scale
var uniformScale =prefabMesh.Get_Uniform_Scale();
Debug.Log(uniformScale);

//Update procedural mesh generated on all the branches
deformedMesh.Update_Branches(true, true);

Enable/Disable Uniform Scale

    public static void Scale_Uniform( bool isUniform)

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();

//Create a new prefab Mesh for the branch with key 3  
var prefabMesh= deformedMesh.Create_PrefabMesh(3,prefabMeshGO);

// Enable prefabMesh uniform scale
prefabMesh.Scale_Uniform(true);

//Update procedural mesh generated on all the branches
deformedMesh.Update_Branches(true, true);