Test Component.fromScene
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2026-01-02 12:33:07 +01:00
parent 76b19de46a
commit a4508fb053
3 changed files with 21 additions and 14 deletions

View File

@@ -1,14 +1,13 @@
import Godot from "godot"
import { useState } from "react"
import { Component } from "react-godot-renderer"
import TestUi1 from "./TestUi1"
const HFlowContainer = Component.make(Godot.HFlowContainer)
const VFlowContainer = Component.make(Godot.VFlowContainer)
const Label = Component.make(Godot.Label)
const CheckBox = Component.make(Godot.CheckBox)
const TestUi1FC = Component.make(TestUi1)
const TestUi1FC = Component.fromScene("res://src/TestUi1.tscn")
export function TestUi2Component() {
const [show, setShow] = useState(false)