Iām only (again) dipping my toes into the matter so far and was pretty surprised thereās no way of composition ā and thatās how I stumbled upon your comments on the glXF repo
by user 395602247196737546
Iām only (again) dipping my toes into the matter so far and was pretty surprised thereās no way of composition ā and thatās how I stumbled upon your comments on the glXF repo
by user 395602247196737546
Speaking of which, if I put a GltfObject component on a prefab and put n instances of it into my scene it will produce n .glbs, at least if the instances have different names. So no reuse this way, which is fine I guess as you would need to rebuild Unityās whole overrides-system.
But if they have the same name, thereās just one file for all of them which gets referenced from the scene glTF: Nice, some reuse. But I suspect it only works because during export theyāll overwrite each other and the last of them (and its modifications) will win and each instance in the scene uses it (and its modifications).
by user 395602247196737546
From a devās perspective this is fine I guess but from a āuserāsā perspective this is pretty confusing and you should maybe swing a warning into their face
by user 395602247196737546
by user 395602247196737546
at least if the instances have different names
Yes, thatās by design right now ā well noticed
Weāre also doing a number of checks to warn when you have prefab overrides etc.
Anyway, thanks for your input on the whole and the time Iām stealing off your schedules ā even if this is not a very goal-oriented discussion Iām super grateful for such great input.
by user 395602247196737546
I think the console already warns or at least logs that the file already exists / the same path was already exported so 20 prefabs with the same name / glbobjects in your scene dont get exported 20 times
Also: you dont need a gltfobject on a prefab if you load it/reference it from a script
Ah no sorry, this is when reexporting
by user 395602247196737546
Seems the screen shot displays the right one after all. If I add third instance with the same name, the line gets emitted two times.
by user 395602247196737546
Yes itās the correct line / log. Maybe a bit too discreet, youāre right.
Also speaking of āfuture plansā there: we do want to have a better window/view for āwhat actually happened during export, what got put where and why and with which settingsā at some point.