Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


constraintmanager

ConstraintManager

An internal Unity system that evaluates all of the “Constraint” components in a scene1).

Beyond applying the constraint the ConstraintManager also sorts constraints based on dependencies, in order to avoid drift caused by non-optimal order of evaluation.

The sorting and evaluation happens in PreLateUpdate.ConstraintManagerUpdate, and is mildly jobified.

1)
ie. PositionConstraint, RotationConstraint, etc
constraintmanager.txt · Last modified: 2022/05/05 03:11 by uninomiconadmin