---
tags:
    - "Physics, 3D, Kinematic"
---

# Cloth Clear Transform Motion

[Physics 3D](../index.md) / [Cloth](index.md) / **Cloth Clear Transform Motion**

## Description

Executes the Clear Transform Motion method on the Cloth component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Cloth Clear Transform Motion")]
    [Category("Physics 3D/Cloth/Clear Transform Motion")]
    [Description("Executes the Clear Transform Motion method on the Cloth component")]

    [Image(typeof(IconShirt), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D, Kinematic")]

    [Serializable]
    public class GenInstructionCloth_ClearTransformMotion_0 : Instruction
    {
        [SerializeField] private GetGameObject m_Cloth = new GetGameObject(
            new GenTypeGameObject_Cloth()
        );

        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Clear Transform Motion");
            return $"{this.m_Cloth} {method}";
        }

        protected override Awaitable Run(Args args)
        {
            Cloth component = this.m_Cloth.Get<Cloth>(args);
            if (component == null) return Done;

            component.ClearTransformMotion();

            return Done;
        }
    }
}
```

