Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How can I use cloth component in runtime?

Discussion in 'General Discussion' started by kimyg, Jun 17, 2020.

  1. kimyg

    kimyg

    Joined:
    Apr 17, 2018
    Posts:
    1
    I want to create a simulation that checks the vertices of what moves like clothes.


    I made a grid to use vertices and mesh in the script.

    size x of the grid is 5. size y of gird is 3. like this.

    upload_2020-6-17_23-50-18.png

    I want this to move like a cloth.

    so I try to getcomponent<Cloth>();.
    but I want to use a cloth component in runtime.
    can you help me?
    Thanks for reading.
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,042