Relative Content

Tag Archive for unity-game-enginetouchrectangles

Unity RectTransformUtility.ScreenPointToLocalPointInRectangle always returns True

I have Canvas with Screen space Overlay and one image in the center of the screen with pivot 0.5, 0.5, 400x400px. targetRectTransform I referenced this square image. And for me ScreenPointToLocalPointInRectangle always returns true, but how I understood from docs it should return true only if I am inside bounds of rect.