Hi,
I am not sure how to fix this. I have a problem with my UI after upgrading.
The m_Canvas variable is null in ItemViewSlotPanelToTooltip. At line 95, in initialize it tries to set the variable:
But the ancester whith a canvas "Inventory Canvas" does not get returned by the GetComponentInParent.
This causes the PlacePanel to crash whenever the mouse hovers over the grid at this line:
This is what my hierarchy looks like.
Is there a way to fix this?
I am not sure how to fix this. I have a problem with my UI after upgrading.
The m_Canvas variable is null in ItemViewSlotPanelToTooltip. At line 95, in initialize it tries to set the variable:
C#:
if (m_Canvas == null) {
m_Canvas = GetComponentInParent<Canvas>();
}
But the ancester whith a canvas "Inventory Canvas" does not get returned by the GetComponentInParent.
This causes the PlacePanel to crash whenever the mouse hovers over the grid at this line:
This is what my hierarchy looks like.
Is there a way to fix this?
Last edited: