// 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 )); }
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); }