You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CreateForMesh is a static property - you can let the renderer know you want it assigned to the parent mesh with the createForParentMesh prop - then it will take the closest declarative mesh:
Maybe I misunderstood your question, so if that doesn't answer your question just let me know and I can always see about adding anything missing. Cheers.
I think
react-babylon-js
must automatically assign theparent
property when elements are nested.But I stumbled across https://playground.babylonjs.com/#ZI9AK7#1214 and AdvancedDynamicTexture which seems to take a completely different approach to parenting.
For example:
It seems you could do
<adtForMesh mesh={plane}>
if you had a reference to the plane, but doingseems out of the question unless there was some special handling.
Also, child elements of ADT don't use the
parent
prop like the rest of Babylon:So it seems difficult to declaratively compose an ADT structure given these differences. Thoughts?
The text was updated successfully, but these errors were encountered: