[Android] Minor updates to the GodotPlugin APIs#111135
[Android] Minor updates to the GodotPlugin APIs#111135Repiteo merged 1 commit intogodotengine:masterfrom
GodotPlugin APIs#111135Conversation
|
Could you provide an example usage of this new method? |
c3b271f to
f872a4e
Compare
GodotPlugin#emitSignal(...)GodotPlugin APIs
@syntaxerror247 I've updated the description with code examples. |
Hm.. I don't see any use for this overloaded method because you can create string constants for signal names. Eg. |
|
Since you’re working on this, would it be possible to support nullable parameters? when I call |
Yeah I can take a look! |
f872a4e to
da362a1
Compare
@syntaxerror247 I thought on it some more, and I think it's better to keep the current limitation in place for a few reasons:
|
47e16c4 to
c95bd46
Compare
c95bd46 to
bfa6884
Compare
- Add overload method for `GodotPlugin#emitSignal(...)` - Allow passing `null` values as signal arguments
bfa6884 to
b9c3b1d
Compare
|
Thanks! |
Minor updates to the
GodotPluginAPI:GodotPlugin#emitSignal(...)that takes in aSignalInfoargument.It's common for
GodotPluginimplementations to define a set ofSignalInfoobjects to use for registration, then reuse those objects when a signal is emitted. This typically looks like:With this update, the call to emit the signal can be changed to:
nullvalues as signal arguments. Prior to this update, the following call would throw anIllegalArgumentException:The update removes this limitation, allowing signal arguments to be
null.