From 05d29ccce1898ed89c0b650c77242c2fa2805128 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Fri, 20 May 2022 00:45:25 +0200 Subject: texty: initial commit --- addons/gut/get_native_script.gd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 addons/gut/get_native_script.gd (limited to 'addons/gut/get_native_script.gd') diff --git a/addons/gut/get_native_script.gd b/addons/gut/get_native_script.gd new file mode 100644 index 0000000..7055fc3 --- /dev/null +++ b/addons/gut/get_native_script.gd @@ -0,0 +1,6 @@ +# Since NativeScript does not exist if GDNative is not included in the build +# of Godot this script is conditionally loaded only when NativeScript exists. +# You can then get a reference to NativeScript for use in `is` checks by calling +# get_it. +static func get_it(): + return NativeScript -- cgit v1.2.3