# Creating/displaying scrollview dynamically

**URL:** <https://forum.playcanvas.com/t/creating-displaying-scrollview-dynamically/13523>\
**Category:** Help & Support\
**Created:** [June 5, 2020, 4:31am UTC](https://forum.playcanvas.com/t/creating-displaying-scrollview-dynamically/13523 "2020-06-05T04:31:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [June 5, 2020, 7:25am UTC](https://forum.playcanvas.com/t/creating-displaying-scrollview-dynamically/13523/2 "2020-06-05T07:25:07Z")

</div>

Hi @Jasont and welcome,

Not sure what’s wrong with your code, but a good idea when doing runtime spawning of entities/objects is to prepare them in editor, keep them disabled. On runtime use that as a template/prefab to create a clone and spawn an exact copy of that editor prepared object.

```javascript
var newEntity = prefabEntity.clone();
this.entity.addChild(newEntity);
newEntity.enabled = true;

```

Not sure if that will solve your problem, but it can help to easily test where is the issue. If it’s something with the params you setup the entities or something different.

---

_[View the full topic](https://forum.playcanvas.com/t/creating-displaying-scrollview-dynamically/13523)._
