# \#observables

**URL:** https://forum.babylonjs.com/tag/observables/241.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Issues after exiting WebXR: ActionManager, Virtual Joystick, and GUI stop working](https://forum.babylonjs.com/t/issues-after-exiting-webxr-actionmanager-virtual-joystick-and-gui-stop-working/61337)

<div class="topic-metadata">

**Author:** [@Rizn](https://forum.babylonjs.com/u/Rizn)\
**Replies:** 4\
**Last updated:** [November 10, 2025, 10:35pm UTC](https://forum.babylonjs.com/t/issues-after-exiting-webxr-actionmanager-virtual-joystick-and-gui-stop-working/61337 "2025-11-10T22:35:40Z")

</div>

Hello everyone, Edit: Here is a Playground to demonstrate my issue: https://playground.babylonjs.com/#RWCM5J#2 I’m working on a virtual room. I use multiple cameras (FreeCamera, ArcRotateCamera, DeviceOrientationCamera…

---

## [Unexpected lastReturnValue in onAfterWorldMatrixUpdate callback](https://forum.babylonjs.com/t/unexpected-lastreturnvalue-in-onafterworldmatrixupdate-callback/60590)

<div class="topic-metadata">

**Author:** [@hibiscus](https://forum.babylonjs.com/u/hibiscus)\
**Replies:** 5\
**Last updated:** [September 24, 2025, 7:11am UTC](https://forum.babylonjs.com/t/unexpected-lastreturnvalue-in-onafterworldmatrixupdate-callback/60590 "2025-09-24T07:11:01Z")

</div>

Hey all, Not sure if this is a bug, or if I’m misinterpreting the documentation. I am expecting that, in the onAfterWorldMatrixUpdateObservable callback, when I return an object with position, rotation and scale of the …

---

## [Listen Observable in a loop](https://forum.babylonjs.com/t/listen-observable-in-a-loop/59100)

<div class="topic-metadata">

**Author:** [@devAxeon](https://forum.babylonjs.com/u/devAxeon)\
**Replies:** 3\
**Last updated:** [June 24, 2025, 2:09pm UTC](https://forum.babylonjs.com/t/listen-observable-in-a-loop/59100 "2025-06-24T14:09:01Z")

</div>

Hi, I’m not sure if it’s a bug or myself doing a bad usage of observables, but I have an issue by listening observable in a loop. In a loop, only the last added callback is called when doing a .notifyObservers() Here’…

---

## [Remove() function in Observer remove other observers](https://forum.babylonjs.com/t/remove-function-in-observer-remove-other-observers/58030)

<div class="topic-metadata">

**Author:** [@nwBen](https://forum.babylonjs.com/u/nwBen)\
**Replies:** 17\
**Last updated:** [April 25, 2025, 3:22pm UTC](https://forum.babylonjs.com/t/remove-function-in-observer-remove-other-observers/58030 "2025-04-25T15:22:48Z")

</div>

Hi! When I have multiple observers subscribed to the same observable, calling the remove() function on one of them causes the others to stop receiving notifications as well. It seems that the remove() function in an ob…

---

## [onPointerObservable on Mesh after start animation](https://forum.babylonjs.com/t/onpointerobservable-on-mesh-after-start-animation/56558)

<div class="topic-metadata">

**Author:** [@Kkasya](https://forum.babylonjs.com/u/Kkasya)\
**Replies:** 5\
**Last updated:** [February 13, 2025, 3:39pm UTC](https://forum.babylonjs.com/t/onpointerobservable-on-mesh-after-start-animation/56558 "2025-02-13T15:39:55Z")

</div>

Hello! When I click on the card, I get pickedMesh (from onPointerObservable or by scene.pick) of my card (id === ‘card\_back’). But after animationGroups\[0\].start the card has another position and when I click on top of …

---

## [viewer.onSceneInitObservable.add(func) not running](https://forum.babylonjs.com/t/viewer-onsceneinitobservable-add-func-not-running/51414)

<div class="topic-metadata">

**Author:** [@leo\_h](https://forum.babylonjs.com/u/leo_h)\
**Replies:** 7\
**Last updated:** [June 18, 2024, 10:36pm UTC](https://forum.babylonjs.com/t/viewer-onsceneinitobservable-add-func-not-running/51414 "2024-06-18T22:36:26Z")

</div>

I’ve seen this code in many playgrounds / documentation etc. and so have been using it: BabylonViewer.viewerManager.getViewerPromiseById("babylon-viewer").then(function(viewer) { viewer.onSceneInitObservable.add(onIni…

---

## [Need some observables to listen Scene/AbstractMesh/Material objects creation event](https://forum.babylonjs.com/t/need-some-observables-to-listen-scene-abstractmesh-material-objects-creation-event/49057)

<div class="topic-metadata">

**Author:** [@Starryi](https://forum.babylonjs.com/u/Starryi)\
**Replies:** 2\
**Last updated:** [March 27, 2024, 3:27am UTC](https://forum.babylonjs.com/t/need-some-observables-to-listen-scene-abstractmesh-material-objects-creation-event/49057 "2024-03-27T03:27:48Z")

</div>

Our team write a mixin library to improve and extend babylon builtin Class functions, such as Scene/AbstractMesh/Material, because wirting extension for builtin Class used XXX.prototype is so tedius. the mixin is used a…

---

## [Clicking child button on parent button](https://forum.babylonjs.com/t/clicking-child-button-on-parent-button/48782)

<div class="topic-metadata">

**Author:** [@DavidP](https://forum.babylonjs.com/u/DavidP)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 8:19pm UTC](https://forum.babylonjs.com/t/clicking-child-button-on-parent-button/48782 "2024-03-14T20:19:27Z")

</div>

Hello, How can I ignore a click on parent button, and trigger onPointerUpObservable of my child? Note: I cannot use Rectangle for my parent because I need to apply texture to the parent thank you

---

## [Passing a changing variable into a Babylon Scene (eg from Svelte)](https://forum.babylonjs.com/t/passing-a-changing-variable-into-a-babylon-scene-eg-from-svelte/45505)

<div class="topic-metadata">

**Author:** [@awenine](https://forum.babylonjs.com/u/awenine)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 9:57am UTC](https://forum.babylonjs.com/t/passing-a-changing-variable-into-a-babylon-scene-eg-from-svelte/45505 "2023-11-07T09:57:50Z")

</div>

Hi all, a bit of a vague question but thought it might be worth getting some general advice. I’m trying to put a Babylon scene as a dynamic part of a Svelte application, probably as a sort of background (havnt decided y…

---

## [Pointer capture failing for Babylon pointer observable during a scroll event](https://forum.babylonjs.com/t/pointer-capture-failing-for-babylon-pointer-observable-during-a-scroll-event/43253)

<div class="topic-metadata">

**Author:** [@jarredcm](https://forum.babylonjs.com/u/jarredcm)\
**Replies:** 9\
**Last updated:** [August 22, 2023, 5:12pm UTC](https://forum.babylonjs.com/t/pointer-capture-failing-for-babylon-pointer-observable-during-a-scroll-event/43253 "2023-08-22T17:12:52Z")

</div>

I am having issues with pointer capture on mobile, which I was able to recreate in this playground: https://playground.babylonjs.com/#MJNICE#1423 The playground has a scrollable list of divs, and a cube that rotates whe…

---

## [Defining clipPlanes in the material level is not clipping edges](https://forum.babylonjs.com/t/defining-clipplanes-in-the-material-level-is-not-clipping-edges/40065)

<div class="topic-metadata">

**Author:** [@Argha\_Chakraborty](https://forum.babylonjs.com/u/Argha_Chakraborty)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 3:13pm UTC](https://forum.babylonjs.com/t/defining-clipplanes-in-the-material-level-is-not-clipping-edges/40065 "2023-04-21T15:13:25Z")

</div>

I have defined clipPlanes in the material level as my use case has lots of instanced meshes in the scene. I need the edgeRenderer to show the edges of my meshes but when clipping them, the edge renderer is not clipping …

---

## [ResizeObserver loop limit exceeded](https://forum.babylonjs.com/t/resizeobserver-loop-limit-exceeded/39587)

<div class="topic-metadata">

**Author:** [@amoebageek](https://forum.babylonjs.com/u/amoebageek)\
**Replies:** 4\
**Last updated:** [April 4, 2023, 8:35am UTC](https://forum.babylonjs.com/t/resizeobserver-loop-limit-exceeded/39587 "2023-04-04T08:35:20Z")

</div>

Hey Everyone, I my project i have RUM logger enabled which is capturing the errors in browser. I have my project in which i am using login to call some function when engine/scene is resized. \` constructor(scene: Scen…

---

## [Scene ready observable not firing with v5.35.0](https://forum.babylonjs.com/t/scene-ready-observable-not-firing-with-v5-35-0/36166)

<div class="topic-metadata">

**Author:** [@yvele](https://forum.babylonjs.com/u/yvele)\
**Replies:** 21\
**Last updated:** [January 24, 2023, 11:17pm UTC](https://forum.babylonjs.com/t/scene-ready-observable-not-firing-with-v5-35-0/36166 "2023-01-24T23:17:46Z")

</div>

When updating Babylon.js from v5.34.0 to v5.35.0 sometimes the onReadyObservable is NOT fired. Everything works fine with v5.34.0. When render target are created and rendered, the scene isReady() switches from false to…

---

## [Am I using Observables correctly? (+code organisation)](https://forum.babylonjs.com/t/am-i-using-observables-correctly-code-organisation/35783)

<div class="topic-metadata">

**Author:** [@jamessimo](https://forum.babylonjs.com/u/jamessimo)\
**Replies:** 7\
**Last updated:** [November 24, 2022, 3:59pm UTC](https://forum.babylonjs.com/t/am-i-using-observables-correctly-code-organisation/35783 "2022-11-24T15:59:41Z")

</div>

Hello BabylonJS Padawans and Jedi’s. I am making a large GUI heavy game, the GUI part is going well but I am at a crossroads and wanted to ask advice and if I’m doing things the “right” way. I have 2 main clases. GUI.t…

---

## [Observable.hasObservers() is still true after removing all the observers](https://forum.babylonjs.com/t/observable-hasobservers-is-still-true-after-removing-all-the-observers/35987)

<div class="topic-metadata">

**Author:** [@sharp](https://forum.babylonjs.com/u/sharp)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 2:50pm UTC](https://forum.babylonjs.com/t/observable-hasobservers-is-still-true-after-removing-all-the-observers/35987 "2022-11-24T14:50:27Z")

</div>

Observable.hasObservers() is still true after removing all the observers. To reproduce : Maybe i’m missing something ?
