setProperty method
Object3D
setProperty(
- String propertyName,
- dynamic newValue
)
inherited
Implementation
Object3D setProperty(String propertyName, dynamic newValue) {
if (propertyName == "id") {
id = newValue;
} else if (propertyName == "name") {
name = newValue;
} else if (propertyName == "scale") {
scale = newValue;
} else if (propertyName == "position") {
position = newValue;
} else if (propertyName == "quaternion") {
quaternion = newValue;
} else if (propertyName == "material") {
material = newValue;
} else if (propertyName == "morphTargetInfluences") {
morphTargetInfluences = newValue;
} else if (propertyName == "castShadow") {
castShadow = newValue;
} else if (propertyName == "receiveShadow") {
receiveShadow = newValue;
} else if (propertyName == "visible") {
visible = newValue;
}else if(propertyName == 'uuid'){
uuid = newValue;
}else if(propertyName == 'type'){
type = newValue;
}else if(propertyName == 'boundingSphere'){
boundingSphere = newValue;
}else if(propertyName == 'boundingBox'){
boundingBox = newValue;
}else if(propertyName == 'tag'){
tag = newValue;
}else if(propertyName == 'parent'){
parent = newValue;
}else if(propertyName == 'children'){
children = newValue;
}else if(propertyName == 'autoUpdate'){
autoUpdate = newValue;
}else if(propertyName == 'matrix'){
matrix = newValue;
}else if(propertyName == 'matrixWorld'){
matrixWorld = newValue;
}else if(propertyName == 'matrixAutoUpdate'){
matrixAutoUpdate = newValue;
}else if(propertyName == 'matrixWorldAutoUpdate'){
matrixWorldAutoUpdate = newValue;
}else if(propertyName == 'matrixWorldNeedsUpdate'){
matrixWorldNeedsUpdate = newValue;
}else if(propertyName == 'layers'){
layers = newValue;
}else if(propertyName == 'frustumCulled'){
frustumCulled = newValue;
}else if(propertyName == 'renderOrder'){
renderOrder = newValue;
}else if(propertyName == 'isImmediateRenderObject'){
isImmediateRenderObject = newValue;
}else if(propertyName == 'userData'){
userData = newValue;
}else if(propertyName == 'extra'){
extra = newValue;
}else if(propertyName == 'geometry'){
geometry = newValue;
}else if(propertyName == 'up'){
up = newValue;
}else if(propertyName == 'position'){
position = newValue;
}else if(propertyName == 'rotation'){
rotation = newValue;
}else if(propertyName == 'quaternion'){
quaternion = newValue;
}else if(propertyName == 'scale'){
scale = newValue;
}else if(propertyName == 'modelViewMatrix'){
modelViewMatrix = newValue;
}else if(propertyName == 'normalMatrix'){
normalMatrix = newValue;
}else if(propertyName == 'material'){
material = newValue;
}else if(propertyName == 'morphTargetInfluences'){
morphTargetInfluences = newValue;
}else if(propertyName == 'morphTargetDictionary'){
morphTargetDictionary = newValue;
}else if(propertyName == 'count'){
count = newValue;
}else if(propertyName == 'bindMatrix'){
bindMatrix = newValue;
}else if(propertyName == 'skeleton'){
skeleton = newValue;
}else if(propertyName == 'overrideMaterial'){
overrideMaterial = newValue;
}else if(propertyName == 'customDistanceMaterial'){
customDistanceMaterial = newValue;
}else if(propertyName == 'customDepthMaterial'){
customDepthMaterial = newValue;
}else if(propertyName == 'onBeforeRender'){
onBeforeRender = newValue;
}else if(propertyName == 'background'){
background = newValue;
}else if(propertyName == 'environment'){
environment = newValue;
}else if(propertyName == 'instanceMatrix'){
instanceMatrix = newValue;
}else if(propertyName == 'instanceColor'){
instanceColor = newValue;
}
return this;
}