Пример #1
0
    public void LoadMesh(Mesh m)
    {
        GameObject go = new GameObject("PointCloudMesh");
        pc = go.AddComponent<PointCloud>();
        pc.particleSystem.renderer.material = pointsMaterial;

        pc.LoadPointsFromMesh(m);
        pc.ResetParticles();
        cameraRotater.position = pc.transform.position;

        clouds.Add(pc);
    }