Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Make sure the object has a starting scale of 1 in xyz. Then you should be able to scale it with gameObject.transform.localScale += new Vector3(1, 0, 1); for example. If the collider is still destroyed, could you explain what exactly happens when you scale the player?

thanks everyone i managed to fix the problem so yeah thanks for your useful and fast replies

looks like i was trying to multiply my localscale  with my desired value(new vector) and when i tried to add them things went just right...

and thanks again for your replies...