From fa43d3b190de10b1b7991dc031ecf29afe8f36e6 Mon Sep 17 00:00:00 2001 From: Carl Scarlett Date: Mon, 10 Sep 2018 17:20:17 +0800 Subject: [PATCH] added clarification about Input.get_accelerometer only working when project is exported (cherry picked from commit 91aa940b4209a510a74a14a6870d3f3249d97bc9) --- doc/classes/Input.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 1755b6c245c..2b292e613cf 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -46,6 +46,7 @@ If the device has an accelerometer, this will return the acceleration. Otherwise, it returns an empty [Vector3]. + Note this method returns an empty [Vector3] when running from the editor even when your device has an accelerometer. You must export your project to a supported device to read values from the accelerometer.