getObjectByName method

Object3D? getObjectByName(
  1. String name
)

name -- String to match to the children's Object3D.name property.

Searches through an object and its children, starting with the object itself, and returns the first with a matching name

Note that for most objects the name is an empty string by default. You will have to set it manually to make use of this method.

Implementation

Object3D? getObjectByName(String name) {
  return getObjectByProperty('name', name);
}