I’m trying to read and set the Screen component Scale Blend value via script, is it possible? I couldn’t find anything to help me in the documentation.
Hi @Elizeu159 and welcome,
You can do it like this, targeting the entity that holds the screen component:
this.entity.screen.scaleBlend = 0.5;
Here is the relevant point in the docs:
https://developer.playcanvas.com/en/api/pc.ScreenComponent.html#scaleBlend
Thank you ! It worked
1 Like