This section contains information about the code side of UnityConstraints. Most of the time you won't need to do more than enable/disable the component from script. See Unity's docs for this. You can directly change anything you see in the inspector and it will update the constraint. For example, you could change the target of a Transform Constraint to have it jump to another object. Changing the mode will also trigger that mode's behavior. For example, setting the mode to align a second time will re-align (runs the constant again, once). Setting a constraint which was set to Off or Once to Constrain, will start the internal co-routine as expected. If you have any questions please visit our forums (there is a link at the top of every page) and we will use the feedback to extend this documentation. |