# Disable camera depending scaling on a Sprite

**URL:** <https://forum.babylonjs.com/t/disable-camera-depending-scaling-on-a-sprite/9252>\
**Category:** Questions\
**Created:** [March 16, 2020, 1:52pm UTC](https://forum.babylonjs.com/t/disable-camera-depending-scaling-on-a-sprite/9252 "2020-03-16T13:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvilTwinsNiceBrother](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@EvilTwinsNiceBrother](https://forum.babylonjs.com/u/EvilTwinsNiceBrother)\
**Post date:** [March 16, 2020, 1:52pm UTC](https://forum.babylonjs.com/t/disable-camera-depending-scaling-on-a-sprite/9252/1 "2020-03-16T13:52:30Z")

</div>

Hello,  
as a follow upon some of my hotspot questions:  
Is it somehow possible to attach a Sprite in the 3D realm but keep it from scaling with the camera zoom?  
I am basically trying to create clickable Hotspots ( including text ) on a model that should always have the same size.  
In this playground example, the sprites are nicely rotating with the model but are scaling:  
[https://www.babylonjs-playground.com/#IGQ023#3](https://www.babylonjs-playground.com/#IGQ023#3)  
and in this example, using the gizmo manager, the sprites are always the same size, but they are also visible when they are “behind” the model.  
[https://www.babylonjs-playground.com/#RQ2T0A#18](https://www.babylonjs-playground.com/#RQ2T0A#18)  
Now I would just need to somehow combine the two 🙂  
Thanks again for all help!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 16, 2020, 3:24pm UTC](https://forum.babylonjs.com/t/disable-camera-depending-scaling-on-a-sprite/9252/2 "2020-03-16T15:24:29Z")

</div>

Hello!

You can take your first solution and then add a function on `scene.registerBeforeRender()` to scale the sprites up and down based on camera position?

---

<div class="post-metadata">

**Author:** ![EvilTwinsNiceBrother](https://avatars.discourse-cdn.com/v4/letter/e/51bf81/32.png) [@EvilTwinsNiceBrother](https://forum.babylonjs.com/u/EvilTwinsNiceBrother)\
**Post date:** [March 20, 2020, 3:19pm UTC](https://forum.babylonjs.com/t/disable-camera-depending-scaling-on-a-sprite/9252/3 "2020-03-20T15:19:36Z")

</div>

Thanks,  
Well, I opted for

```
sprite.size = .1*scene.activeCamera.lowerRadiusLimit

```

that keeps it in proportion.
