This commit is contained in:
@@ -14,15 +14,12 @@ const TextEdit = Component.fromClass(Godot.TextEdit)
|
||||
* A form UI where React controls the state
|
||||
*/
|
||||
export function ControlledFormRoot() {
|
||||
const rootRef = CenterContainer.useRef()
|
||||
Component.useSignal(rootRef, "ready", () => {
|
||||
console.log("ready")
|
||||
})
|
||||
|
||||
return (
|
||||
<CenterContainer
|
||||
ref={rootRef}
|
||||
anchors_preset={Godot.Control.LayoutPreset.PRESET_FULL_RECT}
|
||||
ready={function(this) {
|
||||
console.log("ready")
|
||||
}}
|
||||
>
|
||||
<PanelContainer>
|
||||
<MarginContainer>
|
||||
|
||||
Reference in New Issue
Block a user