set css property as half of another code example
Example 1: how to make the rotation of an object the same as another object in unity
Vector3 newRot = new Vector3 (otherObject.transform.eulerAngles.x, otherObject.transform.eulerAngles.y, transform.eulerAngles.z);
transform.rotation = Quaternion.Euler (newRot);
Example 2: css using the same background-color as the parent background
.child {
float: right;
background-color: inherit;
}