MCPcopy Create free account
hub / github.com/borndotcom/react-native-godot / set

Method set

common/NativeGodotModule.cpp:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 }
427
428 void set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value) override {
429 godot::StringName propName(name.utf8(rt).c_str());
430 bool r_valid = false;
431 _value.set_named(propName, jsiValueToGodotVariant(_workletContext, rt, value), r_valid);
432 if (!r_valid) {
433 throw jsi::JSINativeException(std::string("Unable to set property: ") + name.utf8(rt));
434 }
435 }
436};
437
438class GodotAPIObject : public jsi::HostObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected