{"repo":"rktprof/godot-ios-extensions","free":true,"listed":false,"github":"https://github.com/rktprof/godot-ios-extensions","clone":"git clone https://github.com/rktprof/godot-ios-extensions.git","description":"Godot iOS Extensions","language":"Swift","stars":40,"topics":["extensions","godot","ios","swift"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Some swift based extensions for iOS/macOS functionality, built on SwiftGodot. Everything is provided as-is, I've tried to keep things simple and readable to make up for the (current) lack of documentation. Usage The build.sh script will build everything for iOS and macOS in release configuration and copy the libraries to the /Bin/ folder, you can override this with some parameters - ./build.sh ios/macos/all release/debug Then create your .gdextension file, it would look something like: In order to use the plugin in your godot project you have to do some workarounds because of how GDScript works. For example: while you can create an instance of the GameCenter class directly you can't limit it to a specific platform. This means that if you publish on iOS and Android you need to build the GameCenter plugin for Android, which doesn't make sense. And if you develop on both macOS and Windows you have to build the plugins for Windows as well. To get around this you have to use Variants like so: Which means you will not get any code completion or help at all. This also means that you can only get Variants back from the plugin, which means you need to know what type is returned for any specific function, which you find in the swift classes themselves. For example, in order to get GameCenter friends you do something like this Fortunately, this pattern works for most of your interaction with the plugins. IMPORTANT NOTE: Remember that you need to specify the correct number of arguments o","default_branch":null,"files":null,"tree":[],"storefront":"/r/rktprof","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rktprof/godot-ios-extensions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}