Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


stretchingStiffness

Stretching stiffness of the cloth.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ClothModule
public float stretchingStiffness { get; set; }

Remarks

Must be greater than zero and smaller or equal to one.
In many cases, when you want a cloth to be more stiff, actually reducing the number of vertices will get you better results - and performance.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { GetComponent<Cloth>().stretchingStiffness = 1; }}