Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Set Cloth Properties with script
#1
Hello,

Im currently trying to create and assign a skinned cloth blueprint to some cloth parts i have in my scene. 

I have succesfully managed to do this but im having some issues setting the cloth properties values with the script (skin backstop, backstopradius, radius).
Code:
  blueprint.inputMesh = mesh;
  ObiSkinnedCloth obsc = childobject.AddComponent<ObiSkinnedCloth>() as ObiSkinnedCloth;
  obsc.skinnedClothBlueprint = blueprint;             
  ObiSkinnedClothRenderer obscr = childobject.AddComponent<ObiSkinnedClothRenderer>() as ObiSkinnedClothRenderer;
The above code does what i explained before, but i need couple code lines to add the values i want for each property.

I found this relevant topic: http://obi.virtualmethodstudio.com/forum...-2405.html 
but i cant make it work.

So, how do i manage that?
thanks beforehand!
Reply


Messages In This Thread
Set Cloth Properties with script - by orestissar - 08-04-2021, 02:33 PM