void ScriptGUIGameObjectField::internal_setValue(ScriptGUIGameObjectField* nativeInstance, MonoObject* value) { GUIGameObjectField* gameObjectField = static_cast<GUIGameObjectField*>(nativeInstance->getGUIElement()); if (value == nullptr) gameObjectField->setValue(HGameObject()); else { ScriptGameObject* scriptGO = ScriptGameObject::toNative(value); gameObjectField->setValue(scriptGO->getNativeHandle()); } }
void GUIGameObjectField::onClearButtonClicked() { setValue(HGameObject(), true); }