getObjectByProperty method

Object3D? getObjectByProperty(
  1. String name,
  2. String value
)

Implementation

Object3D? getObjectByProperty(String name, String value) {
  if (getProperty(name) == value) return this;

  for (var i = 0, l = children.length; i < l; i++) {
    var child = children[i];
    var object = child.getObjectByProperty(name, value);

    if (object != null) {
      return object;
    }
  }

  return null;
}