# About CesiumSubScene should have been nested inside a game object with a CesiumGeoreference

**URL:** https://community.cesium.com/t/about-cesiumsubscene-should-have-been-nested-inside-a-game-object-with-a-cesiumgeoreference/34738
**Category:** Cesium for Unity
**Created:** [August 23, 2024, 12:55pm UTC](https://community.cesium.com/t/about-cesiumsubscene-should-have-been-nested-inside-a-game-object-with-a-cesiumgeoreference/34738 "2024-08-23T12:55:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![beyondlei99](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/beyondlei99/32/24570_2.png) [@beyondlei99](https://community.cesium.com/u/beyondlei99)
#### Post date: [August 23, 2024, 12:55pm UTC](https://community.cesium.com/t/about-cesiumsubscene-should-have-been-nested-inside-a-game-object-with-a-cesiumgeoreference/34738/1 "2024-08-23T12:55:22Z")

</div>

I create a subScene under a CesiumGeoreference, And i make it as a Prefab.

When i start to run, Console Error info as below:

 ![image](https://global.discourse-cdn.com/cesium/original/3X/9/4/949f31e9255f42cebc396a326ca8e3d12bdb6b32.png)

---

<div class="post-metadata">

### Author: ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)
#### Post date: [August 23, 2024, 2:45pm UTC](https://community.cesium.com/t/about-cesiumsubscene-should-have-been-nested-inside-a-game-object-with-a-cesiumgeoreference/34738/2 "2024-08-23T14:45:44Z")

</div>

Hi @beyondlei99,

May I ask why you’re trying to make the CesiumSubScene be a prefab? The more I understand your use case, the better advice I can give. 😄

It would also help to share how you’re instantiating the prefab in the scene – are you dragging and dropping an instance in, or are you creating one through code?

---

<div class="post-metadata">

### Author: ![beyondlei99](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/beyondlei99/32/24570_2.png) [@beyondlei99](https://community.cesium.com/u/beyondlei99)
#### Post date: [August 27, 2024, 2:41am UTC](https://community.cesium.com/t/about-cesiumsubscene-should-have-been-nested-inside-a-game-object-with-a-cesiumgeoreference/34738/3 "2024-08-27T02:41:12Z")

</div>

Hi @janine, tank you vech much for your reply!  
as the picture above, “Test” node is a Prefab, that including all its chilldren.  
I instantiate the prefab through code, But In fact, even i modity some code in unityeditor, with the u3d compiling, the error info will come out。

But the Error doesn’t effect the program execution 😄
