#Exporting without requiring children inside GltfObject?

1 messages · Page 1 of 1 (latest)

rigid kindle
#

Looking at https://github.com/needle-tools/needle-engine-support/blob/main/documentation/deployment.md#cross-platform-deployment-workflows I was wondering if there’s been thought on a different approach to support building for multiple targets without having to change the hierarchy of every scene.

GitHub

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible, and collaboration and XR come naturally. - needl...

main blaze
#

You mean because you need to add a GltfObject component right now?

rigid kindle
#

Exactly. My understanding is you need a root GO with a GltfObject component, and only the children of that GO is exported.

main blaze
#

Yes currently thats required for the root export scene. Plans are to remove that requirement.

Actually you can reference any other scene in your project (as a SceneAsset in one of your components) and it will be exported as a gltf (and you can deserialize as a AssetReference in typescript and load it from there)

rigid kindle
#

Ok. So theoretically I can take that approach and add a new scene with the required needle setup and reference the existing scene in that configuration to start adding web support with needle without too much other conflict

#

As long as I also turn off in settings taking over play and build.

main blaze
#

Yes exactly. And you can still build via the Needle Engine platform (we could/should deprecate the build override setting too maybe?)

#

(or you can build via the menu items in "Needle Engine")

rigid kindle
#

Cool. Going to play around with this early next week and document any pain points and then reply back to this thread so we can make improvements to that workflow.