Check out example codes for "unity multiply xyz of two vectors". It will help you in understanding the concepts better.

Code Example 1

// Calculate the two vectors generating a result.
// This will compute Vector3(2, 6, 12)using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(Vector3.Scale(new Vector3(1, 2, 3), new Vector3(2, 3, 4)));
    }
}

Learn ReactJs, React Native from akashmittal.com