Little question about setParent method on transfromManager #7726
Unanswered
yicong123456
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanna combine some nodes who have already add into the scene to a root and apply the transform to the root directly so that I didnot need to apply the transform to each of them. And I just have a simple try to set the connection as below:
and I'm confused that I did nothing except set rootEntity as the root to entity1
4, but the result is all of the r1r4 printed out is 0 after the code executed. This is the reuslt printed out: delete after check: root entity: 5359, e1: 5360, e2: 5361, e3:5362, e4: 5363, r1:0 , r2:0 ,r3:0 ,r4:0 .It shows that I failed to set entity1~4's parent to the rootEntity. May I know what's mistake I have made and thanks so much!Beta Was this translation helpful? Give feedback.
All reactions