#Well the sprite looks small compared to

1 messages ยท Page 1 of 1 (latest)

dense crystal
#

is that UI TMP or Mesh ? @mild mortar

dense crystal
#

yeah just decrease the size until size of square

#

decrease width/height for the bounds then for the font size too

mild mortar
#

Do I set the position of "Tile" at 0,0,0 because right now it's -50,-50 ?

dense crystal
#

you can but it wont matter much if you pass position into instantiate

mild mortar
#

I have this but it looks so small and there's still that white wireframe from the parent of "Tile"

dense crystal
#

I think thats from TMP but..You could always remake the prefab anyway

mild mortar
#

How ?

#

Also, the size of the tile will be defined through code you said, right ?

dense crystal
#

if you scale it accordingly

#

the sprite renderer default scale is at 1 so if you have a 16px PPU sprite, 1 unit is that big and if you doubled the scale to 2 its 32px and so on

mild mortar
#

my white square is 225x225

dense crystal
#

you set that PPU in the texture importer settings?

mild mortar
#

It's at 100 (defautl value)

dense crystal
#

that should be set to 225 then if you want square to fit grid of 1

mild mortar
dense crystal
#

you're pretty much working with unity units. 1 unit = 1m

mild mortar
dense crystal
mild mortar
mild mortar
dense crystal
mild mortar
dense crystal
mild mortar
dense crystal
#

canvas can be kept for other UI items like score and whatnot

#

parent could be something entirely different maybe

mild mortar
dense crystal
dense crystal
#

Oh you know what, I just realized like SpriteRenderer the Mesh version of TMP also uses Order in Layer
it could be that the sprite and tmp are both on 0 , so the camera is likely rendering the sprite ontop of the text