Skip to content

Releases: mfdeveloper/Unity.Lean.Touch.Extensions.ScreenAreas

[Vibration] Using UPM package

10 Jun 02:12
Compare
Choose a tag to compare

Added vibration support when tap, with configurations. You can enable vibration on screen touch or only in UI elements:

imagem

Require the VibrationComponent to the same gameObject that contains the LeanScreenTouch script:

imagem

[Screen Areas] Fixed Left side

09 Jun 11:25
Compare
Choose a tag to compare

Changed the verification of the screen sides by Screen.width and Screen.height, and comparate with the touch.position coords.

PS: Needs more tests

[Touch UI] Check when UI gameObject is touched

22 May 19:37
Compare
Choose a tag to compare
  • Added new script LeanTouchUI.cs to check when UI is touched
  • Refactor the method LeanTouch.RaycastGui() that contains an error, and "copied/changed" to LeanTouchUI.Raycast() method. The only part of this method that was changed the layer verification:
// Loop through all results and remove any that don't match the layer mask
if (tempRaycastResults.Count > 0)
{
	for (var i = tempRaycastResults.Count - 1; i >= 0; i--)
	{
		var raycastResult = tempRaycastResults[i];
		var raycastLayer = 1 << raycastResult.gameObject.layer;
		string layerName = LayerMask.LayerToName(raycastResult.gameObject.layer);

		// PS: That was changed from LeanTouch.RaycastGui()
		if (!LayerMask.GetMask(layerName).Equals(raycastLayer))
		{
			tempRaycastResults.RemoveAt(i);
		}
	}
}

TODO

  • Check the Github actions workflow that shows a "permission denied" error when try do a push to upm branch.

[Touch Screen Areas] Trigger events when tap on 4 screen areas

22 May 18:31
Compare
Choose a tag to compare
  • Identify the touched screen areas by an enum LeanTouchScreen.SideDirection
  • Show gizmos
    • Divide the screen in a cross (4 areas)
    • Show a circle on tap position
    • Show a rect white when tap in all area

[Touch Screen Areas] Developer version

22 May 18:27
Compare
Choose a tag to compare
Pre-release

Development version: Unity project + Embedded package

PS: In this version, this package is in Packages/com.lean.touch.extensions.screenareas folder

  • Identify the touched screen areas by an enum LeanTouchScreen.SideDirection
  • Show gizmos
    • Divide the screen in a cross (4 areas)
    • Show a circle on tap position
    • Show a rect white when tap in all area