Cloth 类提供布料模拟物理设置接口。
| bendingStiffness | 布料的抗弯刚度。 |
| capsuleColliders | 应与此 Cloth 实例碰撞的 CapsuleCollider 组成的数组。 |
| clothSolverFrequency | 每秒布料解算器迭代次数。 |
| coefficients | 布料蒙皮系数,用于设置布料与蒙皮网格的交互方式。 |
| collisionMassScale | 碰撞粒子的质量增加多少。 |
| damping | 抑制布料运动。 |
| enableContinuousCollision | 启用连续碰撞以提高碰撞稳定性。 |
| enabled | 是否启用了此布料? |
| externalAcceleration | 约束,应用于布料的外部加速度。 |
| friction | 布料与角色碰撞时的摩擦力。 |
| normals | 布料对象的当前法线。 |
| randomAcceleration | 应用于布料的随机外部加速度。 |
| selfCollisionDistance | 两个布料粒子互相排斥的最小距离(默认值:0.0). |
| selfCollisionStiffness | 自碰撞刚度定义对碰撞粒子的分离冲量应为多大。 |
| sleepThreshold | 布料的休眠阈值。 |
| sphereColliders | 应与此 Cloth 实例碰撞的 ClothSphereColliderPair 组成的数组。 |
| stiffnessFrequency | 设置刚度频率参数。 |
| stretchingStiffness | 布料的拉伸刚度。 |
| useGravity | 重力是否应影响布料模拟? |
| useTethers | 使用拴带锚点。 |
| useVirtualParticles | 每个三角形添加一个虚拟粒子,以提高碰撞稳定性。 |
| vertices | 布料对象的当前顶点位置。 |
| worldAccelerationScale | 角色的世界空间加速度达到多大就会影响布料顶点。 |
| worldVelocityScale | 角色的世界空间移动达到多大就会影响布料顶点。 |
| ClearTransformMotion | 使待处理的变换组件更改不影响布料模拟。 |
| GetSelfAndInterCollisionIndices | 获取将用于自碰撞和相互间碰撞的粒子的列表。 |
| GetVirtualParticleIndices | 获取在生成虚拟粒子时将使用的索引的列表。 |
| GetVirtualParticleWeights | 获取在生成布料的虚拟粒子时将使用的权重。 |
| SetEnabledFading | 淡入或淡出布料模拟。 |
| SetSelfAndInterCollisionIndices | 这用于设置用于自碰撞和相互间碰撞的布料索引。 |
| SetVirtualParticleIndices | 将索引设置为在生成虚拟粒子时使用。 |
| SetVirtualParticleWeights | 设置在生成布料的虚拟粒子时将使用的权重。 |
| gameObject | 此组件附加到的游戏对象。始终将组件附加到游戏对象。 |
| tag | 此游戏对象的标签。 |
| transform | 附加到此 GameObject 的 Transform。 |
| hideFlags | 该对象应该隐藏、随场景一起保存还是由用户修改? |
| name | 对象的名称。 |
| BroadcastMessage | 调用此游戏对象或其任何子项中的每个 MonoBehaviour 上名为 methodName 的方法。 |
| CompareTag | Checks the GameObject's tag against the defined tag. |
| GetComponent | Returns the component of type if the GameObject has one attached. |
| GetComponentInChildren | Returns the Component of type in the GameObject or any of its children using depth first search. |
| GetComponentInParent | Returns the Component of type in the GameObject or any of its parents. |
| GetComponents | 返回 GameObject 中类型为 type 的所有组件。 |
| GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children. Works recursively. |
| GetComponentsInParent | 返回 GameObject 或其任何父项中类型为 type 的所有组件。 |
| SendMessage | 调用此游戏对象中的每个 MonoBehaviour 上名为 methodName 的方法。 |
| SendMessageUpwards | 调用此游戏对象中的每个 MonoBehaviour 上或此行为的每个父级上名为 methodName 的方法。 |
| TryGetComponent | 获取指定类型的组件(如果存在)。 |
| GetInstanceID | Gets the instance ID of the object. |
| ToString | 返回对象的名称。 |
| Destroy | 移除 GameObject、组件或资源。 |
| DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
| DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 |
| FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 |
| FindObjectsOfType | Gets a list of all loaded objects of Type type. |
| Instantiate | 克隆 original 对象并返回克隆对象。 |
| bool | 该对象是否存在? |
| operator != | 比较两个对象是否引用不同的对象。 |
| operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |