setProperty method

void setProperty(
  1. String propertyName,
  2. dynamic value
)

Implementation

void 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 ");
  }
}