This repository contains a small C# workaround for the
“Swipe gesture to open Lunar Console is not working on Unity 6”
issue from the official lunar-unity-console plugin.
On Unity 6 (6000.x) builds the native two-finger swipe down gesture no longer opens Lunar Console, even though:
LunarConsole.Show()still works- the debug overlay and logs appear as expected
This script re-implements the gesture on the C# side, without modifying the native Android/iOS plugins.
- Unity 6 (6000.x)
- Lunar Console already installed in the project
- Target platform: Android or iOS
- Download the latest
.unitypackagefrom the Releases page:
https://github.com/RimuruDev/Swipe-gesture-to-open-Lunar-Console-is-not-working-on-Unity-6-Solved/releases - Import it into your Unity project.
- Copy
LunarSwipeOpener.csfrom:
https://github.com/RimuruDev/Swipe-gesture-to-open-Lunar-Console-is-not-working-on-Unity-6-Solved/blob/main/LunarSwipeOpener.cs - Add it to your project (any folder under
Assets/).
- Make sure Lunar Console is properly installed and enabled
(Window → Lunar Mobile Console → Enable). - Add the LunarSwipeOpener component to a GameObject in your first scene
(for example, near yourLunar Consoleprefab or bootstrap object). - (Optional) Enable
IsImmortalGameObjectif you want the object to surviveLoadScenecalls. - Build a Development Build for Android or iOS.
- On the device, perform a two-finger swipe down from the top area of the screen – Lunar Console should open.
LunarSwipeOpener exposes a few simple settings:
-
MinSwipeDistance
Minimum distance (in pixels) the center of the two touches has to travel downwards to trigger the gesture. -
StartZoneHeight
Normalized height of the top screen region where the gesture must start
(e.g.0.25= top 25% of the screen). -
IsImmortalGameObject
Iftrue, the object is detached from its parent and marked withDontDestroyOnLoad, so the gesture works across all scenes.
- This script does not fix the native Lunar Console plugin.
It only emulates the gesture using C# andLunarConsole.Show(). - If/when Lunar Console is officially updated for Unity 6 and the native swipe gesture works again, you can simply remove this script.
- Original plugin: Lunar Console by SpaceMadness
- Workaround script: RimuruDev / AbyssMoth