08-04-2021, 02:33 PM
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).
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!
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;
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!