기술 자료

Unity Engine

Unity Engine

stretchingStiffness

Stretching stiffness of the cloth.
읽는 시간 1분최근 업데이트: 한 달 전

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; }}