Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

MeshBuilder.CreateLineSystem() TS errors

$
0
0

Following docs here https://doc.babylonjs.com/how_to/parametric_shapes#line-system

And links PG here http://www.babylonjs-playground.com/#165IV6#66

If I attempt this (verbatim cut'n'paste) in my own TS project, it results in compile error:

error TS2345: Argument of type '{ lines: Vector3[][]; }' is not assignable to parameter of type '{ lines: Vector3[][]; updatable: boolean; instance: LinesMesh; colors?: Color4[][]; useVertexAlph...'.
  Property 'updatable' is missing in type '{ lines: Vector3[][]; }'

http://doc.babylonjs.com/api/classes/babylon.meshbuilder#createlinesystem

instance and updatable seem to be required in the API docs, but the main doc and PG example imply they're optional.

I'm using same version of BJS as PG so not sure why my TS version of the code is failing.


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>