Jump to content

BABYLON.Scene missing methods in babylon.x.x.d.ts


Recommended Posts

I wanted to remove my 2nd camera from a scene and only add it back when it was needed. There is a public method removeCamera(), but it is not in the babylon.x.x.d.ts.  In fact, there is a whole bank of methods not available.  Is there a way other than either disposing & recreating, or not using typescript?


Missing bank:

public addMesh(newMesh: AbstractMesh) public removeMesh(toRemove: AbstractMesh): number public removeLight(toRemove: Light): number public removeCamera(toRemove: Camera): number public addLight(newLight: Light) public addCamera(newCamera: Camera)
Link to comment
Share on other sites

I went next to try using Light.includeOnlyWithLayerMask, & found it missing too.  Looked in GitHub & d.ts file is a month old.  No one ever PR's this file including me (I do not usually even do the individual .js's).


I gulped a fresh one for myself, but one in repository is getting too stale.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...