Exemplo n.º 1
0
 // filling the buffer...
 public static IEnumerator ReadFrom(CloudStream.Reader reader, float stride = 1f, int amount = -1)
 {
     yield return singleton.StartCoroutine(reader.ReadPointsAsync( singleton.generator, stride, amount ));
 }
Exemplo n.º 2
0
    public static IEnumerator ReadFrom(CloudStream.Reader reader, GameObject go,
	                                   float stride = 1f, int amount = -1, float scale = 1f)
    {
        singleton.generator.Offset = 0;
        yield return singleton.StartCoroutine(reader.ReadPointsAsync( singleton.generator, stride, amount ));
        singleton.generator.ClearAfterOffset();
        singleton.generator.Convert(go.GetComponent<MeshFilter>().sharedMesh, scale);
    }