Class Cloth
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform), typeof(SkinnedMeshRenderer))]
public sealed class Cloth : Component
Properties
bendingStiffness
Declaration
public float bendingStiffness { get; set; }
Property Value
capsuleColliders
Declaration
public CapsuleCollider[] capsuleColliders { get; set; }
Property Value
clothSolverFrequency
Declaration
public float clothSolverFrequency { get; set; }
Property Value
coefficients
Declaration
public ClothSkinningCoefficient[] coefficients { get; set; }
Property Value
collisionMassScale
Declaration
public float collisionMassScale { get; set; }
Property Value
damping
Declaration
public float damping { get; set; }
Property Value
enableContinuousCollision
Declaration
public bool enableContinuousCollision { get; set; }
Property Value
enabled
Declaration
public bool enabled { get; set; }
Property Value
externalAcceleration
Declaration
public Vector3 externalAcceleration { get; set; }
Property Value
friction
Declaration
public float friction { get; set; }
Property Value
normals
Declaration
public Vector3[] normals { get; }
Property Value
randomAcceleration
Declaration
public Vector3 randomAcceleration { get; set; }
Property Value
selfCollision
Declaration
[Obsolete("Deprecated. Cloth.selfCollisions is no longer supported since Unity 5.0.", true)]
public bool selfCollision { get; set; }
Property Value
selfCollisionDistance
Declaration
public float selfCollisionDistance { get; set; }
Property Value
selfCollisionStiffness
Declaration
public float selfCollisionStiffness { get; set; }
Property Value
sleepThreshold
Declaration
public float sleepThreshold { get; set; }
Property Value
|
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
sphereColliders
Declaration
public ClothSphereColliderPair[] sphereColliders { get; set; }
Property Value
stiffnessFrequency
Declaration
public float stiffnessFrequency { get; set; }
Property Value
stretchingStiffness
Declaration
public float stretchingStiffness { get; set; }
Property Value
useContinuousCollision
Declaration
[Obsolete("useContinuousCollision is no longer supported, use enableContinuousCollision instead")]
public float useContinuousCollision { get; set; }
Property Value
useGravity
Declaration
public bool useGravity { get; set; }
Property Value
useTethers
Declaration
public bool useTethers { get; set; }
Property Value
useVirtualParticles
Declaration
public float useVirtualParticles { get; set; }
Property Value
vertices
Declaration
public Vector3[] vertices { get; }
Property Value
worldAccelerationScale
Declaration
public float worldAccelerationScale { get; set; }
Property Value
worldVelocityScale
Declaration
public float worldVelocityScale { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public void ClearTransformMotion()
|
Improve this Doc
View Source
GetSelfAndInterCollisionIndices(List<UInt32>)
Declaration
public void GetSelfAndInterCollisionIndices(List<uint> indices)
Parameters
|
Improve this Doc
View Source
GetVirtualParticleIndices(List<UInt32>)
Declaration
public void GetVirtualParticleIndices(List<uint> indices)
Parameters
|
Improve this Doc
View Source
GetVirtualParticleWeights(List<Vector3>)
Declaration
public void GetVirtualParticleWeights(List<Vector3> weights)
Parameters
|
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
|
Improve this Doc
View Source
SetSelfAndInterCollisionIndices(List<UInt32>)
Declaration
public void SetSelfAndInterCollisionIndices(List<uint> indices)
Parameters
|
Improve this Doc
View Source
SetVirtualParticleIndices(List<UInt32>)
Declaration
public void SetVirtualParticleIndices(List<uint> indices)
Parameters
|
Improve this Doc
View Source
SetVirtualParticleWeights(List<Vector3>)
Declaration
public void SetVirtualParticleWeights(List<Vector3> weights)
Parameters
Extension Methods