[SOLVED] Controlling scale with ifs

       var oldHierarchy=this.app.root.findByName("Root");

if(result.other.tags.has('iki') && this.count ==2 ){        
    //Sphere boyutunu  büyültme
        this.scale = this.app.root.findByName('Sphere');
        this.scale.entity  = (50, 50, 50);
}

How do I check the scales of the sphere with if

Hi @Ozden_Delibas,

This is the right command to update the scale of an entity:

this.entity.setLocalScale(50,50,50);

https://developer.playcanvas.com/api/pc.Entity.html#setLocalScale

2 Likes

thank you so much bro