- Home /
Question by
MichaelAsaraf · Jul 26, 2015 at 01:45 PM ·
iospluginobjective-c
Writing unity ios plugin in Swift
Is it possible to use a native Swift code as a Unity plugin?
I mean to use the code from say C# script - call its functions.
I already have a working Swift code. if its impossible, is there any workaround waybe using Objective-c as a bridge?
Comment
Answer by lemonyama · Jul 30, 2015 at 02:41 PM
I think you might have to go thru Objective C to the Swift. See this: http://stackoverflow.com/questions/24078043/call-swift-function-from-objective-c-class
This is better:
http://ericasadun.com/2014/08/21/swift-calling-swift-functions-from-objective-c/