Check out example codes for "transform object according to its parent unity". It will help you in understanding the concepts better.

Code Example 1

transform.localPosition = new Vector3(12.5f, 12.5f, 12.5f);

Learn ReactJs, React Native from akashmittal.com