prefrontalcortex / UnityGLTF

Runtime GLTF Loader for Unity3D
MIT License
163 stars 41 forks source link

Uncomment usage of ShouldExportTransform #87

Closed robertlong closed 1 year ago

robertlong commented 1 year ago

This check is used to ignore disabled nodes in the export. I'm not sure why it was commented out, but I've uncommented it so that we can ignore disabled nodes again.

marwie commented 1 year ago

Hello @robertlong is this configureable in the settings? If not it needs an option to turn it on/off (can be on by default)

robertlong commented 1 year ago

It is configurable in the settings, but this commented line forces it to ignore the setting.

Here's where you should be able to enable/disable exporting disabled objects.

Screenshot 2023-04-23 at 11 01 47 AM

And this is where that setting is used: https://github.com/prefrontalcortex/UnityGLTF/blob/master/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/GLTFSceneExporter.cs#L825

So uncommenting that line will allow for skipping disabled game objects

marwie commented 1 year ago

Thank you!