#Well the sprite looks small compared to
1 messages ยท Page 1 of 1 (latest)
yeah just decrease the size until size of square
decrease width/height for the bounds then for the font size too
Do I set the position of "Tile" at 0,0,0 because right now it's -50,-50 ?
you can but it wont matter much if you pass position into instantiate
I have this but it looks so small and there's still that white wireframe from the parent of "Tile"
I think thats from TMP but..You could always remake the prefab anyway
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
my white square is 225x225
you set that PPU in the texture importer settings?
that should be set to 225 then if you want square to fit grid of 1
it became even smaller ๐ค
yeah but now its flush with the grid
you're pretty much working with unity units. 1 unit = 1m
alright, what's next step ? ๐
try generating the grid so you can adjust the camera ortho size accordingly
I need to replace this RectTransform, what should I replace it with please ? ๐ค
pretty much 1
So TILE_SIZE = 1 ? ๐ค
TILE_SIZE = Vector2.one
The grid works again but there are 2 issues :
- too small
- and the text doesn't render anymore when it has a background (and i think that was the reason I switched to image rather than sprite renderer)
you're not spawning it infront of the camera first things, second you are still making child of UI stuff for some reason
Oh yeah I still have the code to spawn it with a parent, do I remove that part and delete all the canvas stuff ?
canvas can be kept for other UI items like score and whatnot
parent could be something entirely different maybe
It's getting better, just the text still not showing and also still small
is it not showing or small ? which one is it ?
could you show the tile prefab again
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