getObjectsByProperty( name, value, result = [] ) {

		if ( this[ name ] === value ) result.push( this );

		const children = this.children;

		for ( let i = 0, l = children.length; i < l; i ++ ) {

			children[ i ].getObjectsByProperty( name, value, result );

		}

		return result;

	}
Searches through the 3D object and its children, starting with the 3D object
itself, and returns all 3D objects with a matching property value.

@param {string} name - The name of the property.
@param {any} value - The value.
@param {Array<Object3D>} result - The method stores the result in this array.
@return {Array<Object3D>} The found 3D objects.