[ad_1]
Depending on where my game character is located in the map, some text (TextMeshPro) components get hidden/turn invisible.
I have tried to figure out what is causing this. I believe the issue has something to do with the canvas(es). I will add some screenshots to this post to make it a little bit more understandable.
As we can see here we are to the left of what I believe are the canvas(es) line(es). All text components are shown.
As we move to the right (what I believe to be towards the inside of the canvas(es)) the first text component gets hidden/turns invisible.
As we move further to what I believe is the inside of the canvas(es), more of the text components get hidden/turn invisible.
I will now provide some information.
- The text components that are turning invisible can be found at the children of the chatbubbles.
- The layer wich the text components are assigned to is the UI layer. I would have liked to try and do something with the sort order, but I cannot find this function in the text component’s inspector.
- The parents of the text components are all assigned to the Default layer. I have tried assigning the text components to the Default layer aswell, but the situation stays the same.
- I have 3 canvases. They are all assigned to the UI layer. They all have a sort order of 0 aswell. Screenshot down below.
I apologize in advance if something is unclear. I am just at my 2nd month of my game developing journey. If I need to provide more information, let me know!
[ad_2]