Show / Hide Table of Contents

Class Cloth

Inheritance
Object
Object
Component
Cloth
Inherited Members
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform), typeof(SkinnedMeshRenderer))]
public sealed class Cloth : Component

Properties

bendingStiffness

Declaration
public float bendingStiffness { get; set; }
Property Value
Type Description
Single

capsuleColliders

Declaration
public CapsuleCollider[] capsuleColliders { get; set; }
Property Value
Type Description
CapsuleCollider[]

clothSolverFrequency

Declaration
public float clothSolverFrequency { get; set; }
Property Value
Type Description
Single

coefficients

Declaration
public ClothSkinningCoefficient[] coefficients { get; set; }
Property Value
Type Description
ClothSkinningCoefficient[]

collisionMassScale

Declaration
public float collisionMassScale { get; set; }
Property Value
Type Description
Single

damping

Declaration
public float damping { get; set; }
Property Value
Type Description
Single

enableContinuousCollision

Declaration
public bool enableContinuousCollision { get; set; }
Property Value
Type Description
Boolean

enabled

Declaration
public bool enabled { get; set; }
Property Value
Type Description
Boolean

externalAcceleration

Declaration
public Vector3 externalAcceleration { get; set; }
Property Value
Type Description
Vector3

friction

Declaration
public float friction { get; set; }
Property Value
Type Description
Single

normals

Declaration
public Vector3[] normals { get; }
Property Value
Type Description
Vector3[]

randomAcceleration

Declaration
public Vector3 randomAcceleration { get; set; }
Property Value
Type Description
Vector3

selfCollision

Declaration
[Obsolete("Deprecated. Cloth.selfCollisions is no longer supported since Unity 5.0.", true)]
public bool selfCollision { get; set; }
Property Value
Type Description
Boolean

selfCollisionDistance

Declaration
public float selfCollisionDistance { get; set; }
Property Value
Type Description
Single

selfCollisionStiffness

Declaration
public float selfCollisionStiffness { get; set; }
Property Value
Type Description
Single

sleepThreshold

Declaration
public float sleepThreshold { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

solverFrequency

Declaration
[Obsolete("Parameter solverFrequency is obsolete and no longer supported. Please use clothSolverFrequency instead.")]
public bool solverFrequency { get; set; }
Property Value
Type Description
Boolean

sphereColliders

Declaration
public ClothSphereColliderPair[] sphereColliders { get; set; }
Property Value
Type Description
ClothSphereColliderPair[]

stiffnessFrequency

Declaration
public float stiffnessFrequency { get; set; }
Property Value
Type Description
Single

stretchingStiffness

Declaration
public float stretchingStiffness { get; set; }
Property Value
Type Description
Single

useContinuousCollision

Declaration
[Obsolete("useContinuousCollision is no longer supported, use enableContinuousCollision instead")]
public float useContinuousCollision { get; set; }
Property Value
Type Description
Single

useGravity

Declaration
public bool useGravity { get; set; }
Property Value
Type Description
Boolean

useTethers

Declaration
public bool useTethers { get; set; }
Property Value
Type Description
Boolean

useVirtualParticles

Declaration
public float useVirtualParticles { get; set; }
Property Value
Type Description
Single

vertices

Declaration
public Vector3[] vertices { get; }
Property Value
Type Description
Vector3[]

worldAccelerationScale

Declaration
public float worldAccelerationScale { get; set; }
Property Value
Type Description
Single

worldVelocityScale

Declaration
public float worldVelocityScale { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

ClearTransformMotion()

Declaration
public void ClearTransformMotion()
| Improve this Doc View Source

GetSelfAndInterCollisionIndices(List<UInt32>)

Declaration
public void GetSelfAndInterCollisionIndices(List<uint> indices)
Parameters
Type Name Description
List<UInt32> indices
| Improve this Doc View Source

GetVirtualParticleIndices(List<UInt32>)

Declaration
public void GetVirtualParticleIndices(List<uint> indices)
Parameters
Type Name Description
List<UInt32> indices
| Improve this Doc View Source

GetVirtualParticleWeights(List<Vector3>)

Declaration
public void GetVirtualParticleWeights(List<Vector3> weights)
Parameters
Type Name Description
List<Vector3> weights
| Improve this Doc View Source

SetEnabledFading(Boolean)

Declaration
[ExcludeFromDocs]
public void SetEnabledFading(bool enabled)
Parameters
Type Name Description
Boolean enabled

SetEnabledFading(Boolean, Single)

Declaration
public void SetEnabledFading(bool enabled, [DefaultValue("0.5f")] float interpolationTime)
Parameters
Type Name Description
Boolean enabled
Single interpolationTime
| Improve this Doc View Source

SetSelfAndInterCollisionIndices(List<UInt32>)

Declaration
public void SetSelfAndInterCollisionIndices(List<uint> indices)
Parameters
Type Name Description
List<UInt32> indices
| Improve this Doc View Source

SetVirtualParticleIndices(List<UInt32>)

Declaration
public void SetVirtualParticleIndices(List<uint> indices)
Parameters
Type Name Description
List<UInt32> indices
| Improve this Doc View Source

SetVirtualParticleWeights(List<Vector3>)

Declaration
public void SetVirtualParticleWeights(List<Vector3> weights)
Parameters
Type Name Description
List<Vector3> weights

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX