JCPalmer Posted March 31, 2015 Share Posted March 31, 2015 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) Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 31, 2015 Author Share Posted March 31, 2015 Work around (<any> scene).removeCamera(DialogSys._camera); Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 31, 2015 Author Share Posted March 31, 2015 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 31, 2015 Share Posted March 31, 2015 I actually just pushed an update yesterday, should be validated today. A new fresh definition file :-) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 31, 2015 Share Posted March 31, 2015 Yes thank you so much Raanan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.