2D Scene Object
The 2D Scene Object is an empty object that can be used as a container for other 2D objects.
The Scene Object is a similarly empty object used to house other 3D objects. Learn more about Scene Objects.
The 2D Scene Object is a useful organizational tool for grouping other 2D objects together, resizing objects, and setting pivot points. 2D objects parented under a 2D Scene Object can be manipulated as one unit with a single pivot point.
Add a 2D Scene Object
To add a 2D Scene Object, click the Add button [+] > 2D > 2D Scene Object in the Hierarchy panel.
The 2D Scene Object is automatically nested under a 2D Camera object in the Hierarchy panel. The 2D Camera is necessary for rendering the 2D Scene Object.
2D Scene Object in the Hierarchy Panel
The 2D Scene Object appears in the 2D Foreground Effects render group in the Hierarchy panel. Learn more about render groups.
Screen Transform Component and Properties
The Screen Transform component’s properties allow you to manipulate the Scene Object size, position, and rotation.
Position (X, Y): The location of the bounding rectangle’s pivot point relative to the screen center. The default value is (0,0).
Size (Width, Height): The fixed size of the bounding rectangle based on pixels. The default value is (720, 1280).
Pivot (X, Y): The position of the rotation center. The default value is (0.5, 0.5), which is the center of the 2D object.
- X: The closer the value is to 0, the farther left the pivot is. The closer the value is to 1, the farther right the object pivot is.
- Y: The closer the value is to 0, the lower the pivot is. The closer the value is to 1, the higher the pivot is.
In 2D space, the X and Y pivot values present as Cartesian coordinates.
To change the pivot position in the Scene panel, click the pivot point in the center of the bounding rectangle and drag the point to the desired position.
To snap the pivot point to the center of the image, use the magnet function and drag the pivot point close to the center of the bounding rectangle. The pivot point will also snap to the X and Y axes of the image.
Rotation: The rotation of the image around the Pivot center. The default value is 0.
Scale 2D (X, Y): Stretches the image, distorting its aspect ratio. The default value is (1,1).
Pixels Per Unit: Controls the resolution. The default value is 32 pixels.
Parenting 2D Objects
To group existing 2D objects under a 2D Scene Object, drag them on top of the 2D Scene Object in the Hierarchy panel.