How do you switch to a template when starting from a sample scene?

e.g. I want to switch from Vite + HTML to Vite + React when I started with a sample scene. Would be useful to know how to in the docs
https://github.com/needle-tools/needle-engine-support/blob/822f0c1a662d60bd027c00119f97efbf2ff36486/documentation/html.md
unknown.png

Original Post on Discord

by user 103054507105067008

I made a template here and have no idea where to add react to it or what it all means

by user 103054507105067008

you can select the template to use when you generate the project in the ExportInfo component
unknown.png

The scriptable object in your screenshot above marks the folder that contains the template files

Can I switch/override an existing one? I guess I could just make a new Export gameobject + component and do it there then delete the old one in the scene

by user 103054507105067008

You can just change the path in the ExportInfo and then select the other template (if a project at ProjectFolder does already exist)

unknown.png

by user 103054507105067008

Did what I said above, made new Export component in scene, pointed it to a different, empty project folder then I get this

by user 103054507105067008

Looks like the folder is not empty?

It was empty I made it myself

by user 103054507105067008

Which folder opens when you click the Directory button?

unknown.png

by user 103054507105067008

by user 103054507105067008

When I click directory, I get C:\Unity_Projects\clientname\projects\React\React

by user 103054507105067008

What about these folders?
unknown.png

I made folder empty fresh myself here

by user 103054507105067008

It was definitely empty brand new I added it myself

by user 103054507105067008

Seems to be a bug, is there a repo with a react one I can copy for now to get around this?

by user 103054507105067008

Made an issue to track https://github.com/needle-tools/needle-engine-support/issues/96

by user 103054507105067008

Can you

  • delete that folder
  • generate the project
  • check if the files reappear?

To be honest that does look like a human error on your end, and it does look like part of your Unity folders in there