# Always provide the scene parameter to all babylon.js functions

**URL:** <https://forum.babylonjs.com/t/always-provide-the-scene-parameter-to-all-babylon-js-functions/57358>\
**Category:** Tutorials and tips\
**Created:** [March 23, 2025, 2:14pm UTC](https://forum.babylonjs.com/t/always-provide-the-scene-parameter-to-all-babylon-js-functions/57358 "2025-03-23T14:14:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tricotou](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tricotou/32/5844_2.png) [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Post date:** [March 23, 2025, 2:49pm UTC](https://forum.babylonjs.com/t/always-provide-the-scene-parameter-to-all-babylon-js-functions/57358/2 "2025-03-23T14:49:56Z")

</div>

Yup.  
Also, it’s somehow joining my last request about a warning :

> [@Add console warning when no scene found while needed](https://forum.babylonjs.com/t/add-console-warning-when-no-scene-found-while-needed/57313):
>
> Hello slight_smile ! Not sure either it should go into #Bugs or #Feature requests (or none of them, if it’s known) Some constructors need the scene as param : const transform = new BABYLON.TransformNode("transform", scene); const ground = BABYLON.MeshBuilder.CreateGround("ground", {width: 6, height: 6}, scene); const camera = new BABYLON.ArcRotateCamera("camera", 0, 1, 10, BABYLON.Vector3.Zero(), scene); If not provided, the scene will be retreived automatically If the scene doesn’t exist,…

---

_[View the full topic](https://forum.babylonjs.com/t/always-provide-the-scene-parameter-to-all-babylon-js-functions/57358)._
