A constraint allows to attach panels or texts where you want whem to be, regardless of screen resolution or device. Have to parent the object to the camera.
Constraints are used to set up various relations between objects by
affecting their position, rotation and scale. Can be used with the
Object3D.constraints property.
The horizontal canvas edge to fit to. Default is 0.
-1 — left edge.
1 — right edge.
0 — none egde.
The horizontal canvas edge to fit to. Default is 0.
-1 — bottom edge.
1 — top edge.
0 — none egde.
Canvas fir offset, must be >= 0. Default is 0.0.
Used to check whether this or derived classes are canvas fit constraints. Default is true.
The constraint's type. Equals to "CanvasFitConstraint".
Canvas fit shape. Default is true.
false — sphere.
true — box.