Interacting with Unity 3D player controller can be done through Unity's APIs in Swift by utilizing the UnityFramework library.
Here is an example of how to get a reference of the player controller and move it forward in Swift:
main.swift844 chars25 lines
Note: This code assumes that you have already set up the UnityFramework library in your project. If not, follow the instructions outlined in Unity's official documentation.
gistlibby LogSnag