Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Set Cloth Properties with script
#6
Code:
blueprint.Generate();

This is a coroutine (as evidenced by its IEnumerator return type). Like all coroutines, you need to use StartCoroutine() and wait for it to finish. Calling it directly like in your code does nothing. From the code samples found in the manual page I linked to in the previous message:

Code:
yield return StartCoroutine(blueprint.Generate());

Also, see:
https://docs.unity3d.com/Manual/Coroutines.html

cheers,
Reply


Messages In This Thread
Set Cloth Properties with script - by orestissar - 08-04-2021, 02:33 PM
RE: Set Cloth Properties with script - by josemendez - 09-04-2021, 11:39 AM