Example #1
0
    void CreatSphereMesh(Vector3 position)
    {
        MeshFilter meshFilter = GetMeshComponent();

        meshFilter.transform.position = position;
        meshFilter.mesh = SphereMesh.CreateSphere(0.05f, 20, 20, Color.red);
    }
Example #2
0
    void CreatSphereMesh()
    {
        MeshFilter meshFilter = GetMeshComponent();

        meshFilter.transform.position = GetMousePoint();
        meshFilter.mesh = SphereMesh.CreateSphere(0.05f, 20, 20, Color.red);
    }