Releases: mfdeveloper/Unity.Lean.Touch.Extensions.ScreenAreas
Releases · mfdeveloper/Unity.Lean.Touch.Extensions.ScreenAreas
[Vibration] Using UPM package
[Screen Areas] Fixed Left side
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
- Added new script
LeanTouchUI.cs
to check when UI is touched - Refactor the method
LeanTouch.RaycastGui()
that contains an error, and "copied/changed" toLeanTouchUI.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
- 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
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