Skip to content
Binding GDScript to native languages(Java,Obj-C).
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
native_support
LICENSE
README.md

README.md

binding

Binding GDScript to native languages.

Usage

For Java:

  var JClass = NF.find("com.android.godot.TestObj")
  print(JClass.s_str()) #static method
  var test_obj = JClass.new(22)
  print(test_obj.a)

For Object-C:

  var MyObject = NF.find("MyObject")
  print(MyObject.getOutput("hello")) #class method
  var test_obj = MyObject.new()
  obj.b = 998
  print(obj.b) # obj.b() for method.
  print(obj.print(1,2)) # => [obj print:1 add:2]   It will match the first word(part) and the arguments count with obj-c method.

Signal in Java:

  JavaSupport.addUserSignal(this, "event_test2", "str");
  JavaSupport.emitSignal(this, "event_test2", "event from java");

Signal in Object-C:

  [self addUserSignal:"event_test" withParams:@[@"param"]];
  [self emitSignal:"event_test" withParams:@[@"event from object-c"]];
You can’t perform that action at this time.