Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

createInstance not cloning Children.

$
0
0

So I have a scene where I am creating presets, and a few of them have children.

When I try to createInstance of the preset None of the children come through, even though I can see them in the presets._children array, but they do not appear in the new instance.
Ive noticed they have the flag of hasChildren = -1, or something like that, would that be causing them to get skipped?

Also I tried to do a workaround where i looped through the child array and created instances of them, but that ended up making my draw calls in the thousands.
I tried to see what was going on by then just doing a simple preset.clone() and that worked as expected with the children coming through, but one draw call for each object now instead of each instance.

Im thinking createInstance is bugged?


*EDIT after reviewing the documentation I think I may need to use synchronizeInstances
**EDIT EDIT... nope unless im using it wrong...


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>