setProperty method
Implementation
Object3D setProperty(String propertyName, value) {
if (propertyName == "id") {
id = value;
} else if (propertyName == "castShadow") {
castShadow = value;
} else if (propertyName == "receiveShadow") {
receiveShadow = value;
} else if (propertyName == "visible") {
visible = value;
} else if (propertyName == "name") {
name = value;
} else if (propertyName == "quaternion") {
quaternion.copy(value);
} else {
throw ("Object3D.setProperty type: $type propertyName: $propertyName is not support ");
}
return this;
}