Skip to content

Instantly share code, notes, and snippets.

@hamanishi
Created November 2, 2017 05:20
Show Gist options
  • Save hamanishi/ded2067ac6ad189ffec1a46d63d42c15 to your computer and use it in GitHub Desktop.
Save hamanishi/ded2067ac6ad189ffec1a46d63d42c15 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PointCloudRender : MonoBehaviour {
void Start ()
{
MeshFilter meshFilter = GetComponent<MeshFilter>();
meshFilter.mesh.SetIndices(meshFilter.mesh.GetIndices(0),MeshTopology.Points, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment