お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close布の密度
This sets the mass of the cloth per area. Must be greater than zero. Changing this property causes the cloth simulation to reset.
// This will simulate heavy cloth like "chain mail" transform.GetComponent(InteractiveCloth).density = 50;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<InteractiveCloth>().density = 50; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: transform.GetComponent[of InteractiveCloth]().density = 50