Version: Unity 6.0 (6000.0)
Language : English
Select colors and color gradients
Constraint components introduction

Constraint components

Constraint components allow you to control the position, rotation, and scale of GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
based on other objects in your sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
. They provide a way to create relationships between objects without using parent-child hierarchies or writing custom scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
.

Constraints are useful for character riggingThe process of building a skeleton hierarchy of joints for your mesh. Performed with an external tool, such as Blender or Autodesk Maya. More info
See in Glossary
, cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
control, and creating relationships between objects. You can use multiple constraints on a single GameObject and blend between multiple source objects to achieve complex behaviors.

Topic Description
Constraint components introduction Understand Constraint components and how they control GameObject transforms based on other objects.
Aim Constraint component Constrain a GameObject to aim at one or more target objects.
Look At Constraint component Rotate a GameObject to look at a target object.
Parent Constraint component Control a GameObject’s transform as if it were a child of one or more parent objects.
Position Constraint component Constrain a GameObject’s position to follow one or more source objects.
Rotation Constraint component Constrain a GameObject’s rotation to match one or more source objects.
Scale Constraint component Constrain a GameObject’s scale to match one or more source objects.

Additional resources

Select colors and color gradients
Constraint components introduction