Question by
Pirumello · Feb 16, 2017 at 04:45 PM ·
objectunityeditortypeinteractioncurve
(Final IK) How can I change the Type of the Weight Curve of an Interaction Object from the script?
Hello, I'm trying to add an InteractionObject to a GameObject from a script and I want to change the type of the first weight curve but I don't know how to do it. I tried with this code but nothing happens. Can someone explain me how to solve it?
InteractionObject intobjsys = gameobj[indexBall].AddComponent();
intobjsys.weightCurves = new InteractionObject.WeightCurve[1];
intobjsys.weightCurves [0].type = InteractionObject.WeightCurve.Type.PositionOffsetX;
Comment