# Camera Orbit Controls NaN in new scene

**URL:** <https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779>\
**Category:** 🌵 Needle Engine\
**Tags:** bug\
**Created:** [February 12, 2026, 2:17pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779 "2026-02-12T14:17:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_N](https://forum.needle.tools/user_avatar/forum.needle.tools/s_n/32/4817_2.png) [@S\_N](https://forum.needle.tools/u/S_N)\
**Post date:** [February 12, 2026, 2:17pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/1 "2026-02-12T14:17:52Z")

</div>

I replicated your multi scene sample with the same structure, empty loader scene with the scene loader component that references 2 scenes. This empty scene has the needle exporter in it and a needle project set.  
The 2 scenes each have a camera with orbit controls on it and several gameobjects with a button component on them. On click is set to trigger orbit controls =\> SetLookTargetPosition and reference to the clicked GO. The following happens on click:  
In the needle inspector on chrome the scene turns inactive and the camera transforms is NaN. Sometimes I also had the browser console to print either the NaN issue or that the referenced GO is not an actual gameobject.

However if I set either of the 2 scenes as their own projects and export and load them on their own, the click and SetLookTargetPosition works like expected. Only the scene loader setup causes this issue.  
I also tried giving each scene its own exporter and seperate needle project but this did not fix the problem. Something happens to the orbit controls when a new scene is loaded.

I also tried to add this button and orbit control call in the multi scene sample and its the same error.

---

<div class="post-metadata">

**Author:** ![needle-assistant](https://forum.needle.tools/user_avatar/forum.needle.tools/needle-assistant/32/3415_2.png) [@needle-assistant](https://forum.needle.tools/u/needle-assistant)\
**Post date:** [February 12, 2026, 2:17pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/2 "2026-02-12T14:17:53Z")

</div>

I’m sorry, I couldn’t find a response but notified the team 🤔

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [February 12, 2026, 2:21pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/3 "2026-02-12T14:21:47Z")

</div>

Hi can you share a link?

---

<div class="post-metadata">

**Author:** ![S\_N](https://forum.needle.tools/user_avatar/forum.needle.tools/s_n/32/4817_2.png) [@S\_N](https://forum.needle.tools/u/S_N)\
**Post date:** [February 12, 2026, 2:30pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/4 "2026-02-12T14:30:29Z")

</div>

Yes. My test project it to large to export it says but here is the multi scene sample with the cubes added into the scene that casue the issue on click. The interface to switch to next/previous scene does not reset the error state its seems, everything is deactivated.

> **[Multi Scenes](https://multi-scenes-1u8zgjuomjn-uomjn.needle.run/?scene=Scene+1+-+Simple)**
>
> Lazy load and switch scenes

Thank you

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [February 12, 2026, 3:54pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/5 "2026-02-12T15:54:46Z")

</div>

It looks like the target object of the Button event is not correctly resolved but I would need a reproduction.

Could you create a minimal example that reproduces the issue (you can use the Needle Engine Bugreporter to send it).

---

<div class="post-metadata">

**Author:** ![S\_N](https://forum.needle.tools/user_avatar/forum.needle.tools/s_n/32/4817_2.png) [@S\_N](https://forum.needle.tools/u/S_N)\
**Post date:** [February 12, 2026, 4:28pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/6 "2026-02-12T16:28:08Z")

</div>

Done, thanks for checking this out 🙂

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [February 13, 2026, 12:34pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/7 "2026-02-13T12:34:43Z")

</div>

Hi, could you try updating to 4.13.1 if it fixes the issue for you?

---

<div class="post-metadata">

**Author:** ![S\_N](https://forum.needle.tools/user_avatar/forum.needle.tools/s_n/32/4817_2.png) [@S\_N](https://forum.needle.tools/u/S_N)\
**Post date:** [February 13, 2026, 1:57pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/8 "2026-02-13T13:57:27Z")

</div>

Happy to report this issue fixed. Thank you for your quick reaction and fixes 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.needle.tools/user_avatar/forum.needle.tools/system/32/20_2.png) [@system](https://forum.needle.tools/u/system)\
**Post date:** [February 26, 2026, 1:58pm UTC](https://forum.needle.tools/t/camera-orbit-controls-nan-in-new-scene/2779/9 "2026-02-26T13:58:07Z")

</div>

Closed on February 26, 2026, 1:58pm UTC

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.
