Closed asmwarrior closed 4 months ago
Hi, I see some code below:
https://github.com/markaren/threepp/blob/258708f68cde3fbedbc8ae005e7eca1406fae4b0/examples/projects/Crane3R/Crane3R.cpp#L78-L98
Now, I see those objects were loaded by the below code:
https://github.com/markaren/threepp/blob/258708f68cde3fbedbc8ae005e7eca1406fae4b0/examples/projects/Crane3R/Crane3R.cpp#L99-L129
Does it mean that when I use a statement like auto part1, and later I add the variable part1 to the scene, the object part1 will have a default name of "part1"? So that I can query the object by searching the text string "part1"?
auto part1
part1
scene
Thanks.
EDIT:
part1->name = "part1"; part2->name = "part2"; part3->name = "part3";
Oh, I see the name field is set explicitly, so if I do not set the filed, what is the default name?
name
The default is the empty string.
OK, I see. Thanks.
Hi, I see some code below:
https://github.com/markaren/threepp/blob/258708f68cde3fbedbc8ae005e7eca1406fae4b0/examples/projects/Crane3R/Crane3R.cpp#L78-L98
Now, I see those objects were loaded by the below code:
https://github.com/markaren/threepp/blob/258708f68cde3fbedbc8ae005e7eca1406fae4b0/examples/projects/Crane3R/Crane3R.cpp#L99-L129
Does it mean that when I use a statement like
auto part1
, and later I add the variablepart1
to thescene
, the objectpart1
will have a default name of "part1"? So that I can query the object by searching the text string "part1"?Thanks.
EDIT:
Oh, I see the
name
field is set explicitly, so if I do not set the filed, what is the default name?